http server and mqtt client problem #5609
Replies: 1 comment
-
Posted at 2016-11-15 by Ollie Maybe a lack of memory to run, or free space in which to save your program. There is quite a lot going on. I would start by removing the Posted at 2016-11-16 by AlessioBacin Hi Ollie,
everything is perfectly working before saving...
as soon as i save() on the console, unplug and replug usb i see this in the console:
You can notice that everything is working but not the last "message sent". so qhat can it be??!! Posted at 2016-11-16 by Ollie I would bring the Posted at 2016-11-16 by AlessioBacin Hi Ollie, Can you just tell me last thing about why i'm getting "ERROR: Prompt not detected - upload failed" everytime i was executing my previous code? Posted at 2016-11-16 by Ollie Re first point - if I'm honest I can't give you a definitive answer. I think it's down to what Re your last point, you can see this for a number of reasons. The IDE will look for an indication that the board is ready by looking for a console prompt. You may not have that perhaps because your first version saved code had started and already crashed the board? I am only guessing but it would seem likely. Posted at 2016-11-16 by AlessioBacin Ok so in case i would like to require mqtt where it was i still can do it but the create function should be placed inside the wifi callback function. Ok Ollie very glad you help me. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-11-15 by AlessioBacin
I have a problem when http and mqtt live together:
This is my code:
when i put mqtt just after the http.createserver code and flash... everuthing stops working... even console prompt stops working at next boot.
The strange thing is that trying to reflash completely espruino framework and reflashing the code even without mqtt code... prompt does not execute any code.
Has someone ever faced this problem?!
Please help me...
I'm using ESP12e on Espruino 1v88
PS the code i posted is just the result of many other tries i made putting everything outside E.on method and other ways of writing the code differently, each time starting with one module at a time.
And btw i always get: ERROR: Prompt not detected - upload failed. Trying to recover... is there something wrong i'm doing or a way to solve this?
Beta Was this translation helpful? Give feedback.
All reactions