Hello @roquito i was searching for the error with the exception(28), it is an error when there is a infinite loop in any location. In our labrary we delete all infinite loops (while, for, etc) that errer is possible that is caused before to sendAll function, i think that the problem is with OTA library, try to run the code without that lib and if it works then the problem is with the another lib or the size of the two libs in the same sketch.
No, it is actually quite the contrary. The sketch that includes the OTA (and all the other libraries) works fine! while the simple one does not! to be clear, this is the one that does not work:
#include "UbidotsMicroESP8266.h"
#define TOKEN "xlAtJF" // Put here your Ubidots TOKEN
#define WIFISSID "Gni"
#define PASSWORD "ju"
Ubidots client(TOKEN);
void setup(){
Serial.begin(9600);
delay(10);
client.wifiConnection(WIFISSID, PASSWORD);
Serial.println("All done with the setup function");
}
void loop(){
float value = analogRead(A0);
client.add("ANALOG PIN A0", value);
client.sendAll(true);
Serial.println("Completed loop, now going to pause for 1 minute");
delay(60000);
}
@Metavix the sketch loads fine but the serial monitor reports a bunch of garbage (serial output.txt (44.5 KB)
Now, I ordered a brand new NodeMCU and loaded the simple code as soon as I opened the package and it worked. Here is the serial output:
I can confirm that if I load another sketch (For_ubidots.ino (2.4 KB) ) and then try to load the simple sketch back, it will “break” the NodeMCU to where it would give me the same serial output as the txt file above.
I suspect your library has a dependency on something that the .ino file above is permanently altering. Looking forward to get this solved!