Code Monkey home page Code Monkey logo

Comments (5)

damiendon avatar damiendon commented on June 12, 2024 1

OK,
For Status i find a way to read the bytes (without the library), i will try to make a working function for the library when I got time.
for now with the library, if I just print gp.getStatus(), I don't have the bytes of the status, I don't know why...

For MediaList, I still can't see the json, but I think it's because the rx buffer when the json is returned is not big enough due to limitiations with esp8266 memory. I have about 150 jpg and 150 mp4 wich give me a json of about 15000 characters (making tests make me do a lot of pictures and videos ! haha).
reading posts it looks like the buffer size is about 1500 MAX...
I will give it a try and see if my issue for medialist is solved. I will give the result here, maybe it could help somebody one day.

from goprocontrol.

aster94 avatar aster94 commented on June 12, 2024

okkkk I wasn't aware of this difference, you should change the example:

DeserializationError error = deserializeJson(status, gp.getStatus());

Here change this line and just print it and delete the json stuff

from goprocontrol.

damiendon avatar damiendon commented on June 12, 2024

Thinking about it today, maybe the buffer is not big enough...

for status, empty input is normal as the deserializeJson doesn't find any json object. Alsow, when i try to print to serial gp.getstatus(), it only return request reponse stuff but no bytes... for that I don't Know what to do

For Media list it should work, but it alsow return empty input... thats make me think that buffer is to small and it stop recording then entry when full, so deserializejson don't find the last part of the Json object. Alsow, when i just try to print in serial gp.getmedialist(), it only return request reponse stuff but no json object...

from goprocontrol.

aster94 avatar aster94 commented on June 12, 2024

Perfect, keep us updated

from goprocontrol.

damiendon avatar damiendon commented on June 12, 2024

Hi ,
I made a pull request for the medialist part, it's working on my hero3, if somebody can test it on others gopro, I only have a hero3 !
the problem was the port 80, it work on port 8080 for me.

next step with getstatus for hero3 :)

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.