Giter Site home page Giter Site logo

Comments (5)

pvint avatar pvint commented on August 14, 2024

Original comment by debdale (Bitbucket: Debdale, ).


hi Mathew,

i'm trying to do a similar thing.
i'm tying to POST a API to my raspberry pi, I've noticed if you move your (GET snippet/block) of code and place it anywhere else in the same sketch it will work.

also have you replaced the GET with POST just to see what happens?

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by debdale (Bitbucket: Debdale, ).


looking into this further i think its also a library issue in a sense that the fauxmoESP.h and the ESP8266HTTPClient.h do not play well together??

i think there has been issues before with other HTTP/server libraries conflicting.

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Michael Gates (Bitbucket: MadBanana, GitHub: MadBanana).


I seem to be experiencing similar. FAUXMO works perfectly alone and the example behaves as it should. ESP8266HTTPClient also works correctly, sending HTTP commands to my Sonoff plugs.

The two together just will not work - I don't get any errors, FAUXMO toggles the LED state and sends to serial the change of state details but no HTTP string gets sent.

Glad it isn't just me ...

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Xose Pérez (Bitbucket: [Xose Pérez](https://bitbucket.org/Xose Pérez), ).


Try not to add too much code inside the callback, rise a flag instead and handle it from the main loop.

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Michael Gates (Bitbucket: MadBanana, GitHub: MadBanana).


Yes, thanks - I'd been restructuring the code for a while (don't have much spare time!) and it seems to work ok. Only using two devices and occasionally it hangs but much better than before.

from fauxmoesp.

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.