The problem is that when the ESP tries to send tha data to thingspeak it...resets!
I have tried with another power supply whih can supply a lot of power in case it 's a lack of current.
But no, no change.
With the multimeter I see no voltage drop when it resets. (maybe my multimeter is not fast enough or maybe there is no voltage drop)
The code where it happens is this:
int sendToThingSpeak(String dataFieldOneValue) {
display_show_text("Sending to thingspeak...");
delay(1000);
ThingSpeak.setField( dataFieldOne, dataFieldOneValue );
display_show_text("Sending Step 1...");
delay(1000);
int writeSuccess = ThingSpeak.writeFields( channelID, writeAPIKey );
display_show_text("Sending Step 2...");
delay(1000);
return writeSuccess;
}
The reset is happening at 'ThingSpeak.writeFields'.
Pins I use for LCD, Lora and for an interrupt:
LCD.....................ESP
CLK.....................GPIO10
DIN......................GPIO2
DC.......................GPIO0
CE.......................GPIO1
RST.....................GPIO3
Lora...................ESP
SS......................GPIO15
RESET................GPIO4
MOSI..................GPIO13
MISO..................GPIO12
SCK....................GPIO14
For the interrupt I use pin GPIO5.
i