Code Monkey home page Code Monkey logo

Comments (5)

aster94 avatar aster94 commented on June 12, 2024

Hi, if nothing appear in the serial monitor and the debug is enabled something may be wrong in your setup

Actually I am not sure about what is wrong, are you absolutely sure that the code gets uploaded in the board? Sometimes the upload fails

from goprocontrol.

edsonchuck avatar edsonchuck commented on June 12, 2024

Thank you for your quick answer.

I tried again, carefully copying your code, and nothing happens again.

So, I just uploaded a simple led blink code on the board, and it works fine.

Definitely I have no idea whats is going on. I'm gonna try a different code, with other wifi connections and see what happens.

The only thing, I don't know if I am doing right, is the Secrets.h file. I put there the camera SSID and password. But there is no place to put the camera model. So I put the camera model in the main code.

Like this: GoProControl gp(GOPRO_SSID, GOPRO_PASS, HERO6);

Is it ok doing like this?

Many thanks again

from goprocontrol.

aster94 avatar aster94 commented on June 12, 2024

If you want to can also get rid of Secrets.h and write your wifi name and password directly in the main sketch like this:
GoProControl gp("my_ssid", "my_pass", HERO6);

Still, I can't understand why you don't see any serial plotting

from goprocontrol.

edsonchuck avatar edsonchuck commented on June 12, 2024

Hello, aster,

Finally, I solved the problem, and I am already trying to use the code in my own project.

After some tests, I am having a new problem. I can connect the camera, and everything works fine, but always after around 8 minutes, the board loses the connection with the camera. I am using the command "gp.keepAlive", but the connection closes anyway.

Do you have any idea about how the connection can stay always turned on?

I am trying to use the camera attached to a PIR movement sensor, so, the idea is the camera stay always turned on and start recording when any movement is detected.

Thank you very much again.

from goprocontrol.

aster94 avatar aster94 commented on June 12, 2024

maybe you are not calling the keep alive enough often. I have been using the lib for even 20minutes with very fast loops and i never had a problem, your code probably hangs somewhere and the function isn't called

from goprocontrol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.