January 19, 2018
I've ESP 8266 12-E on Nodemcu board. I've programmed it via Arduino IDE to send data to two channels (8+7 fields) on Thingspeak every minute. When ESP is connected to my home WiFi it takes approximately 6-8 seconds (3-4s per channel) to send a data.
I want to have more portable device so I programmed it to send data via my phone tethering (access point) by changing SSID and password to my phone. ESP12-E connected to it (1 connected client on statusbar), sending data took almost 12 seconds - probably because of weaker range.
Unfortunately it wasn't sent (or received?). I tried to use second (older and worse) phone. Sending took almost 20 seconds but the result was the same.
It works only on my home WiFi (didn't test other routers). Should I change something or ThingSpeak isn't compatible with phones? Or it takes too long? What could be a reason?
March 7, 2017
January 19, 2018
Yes... and no. At the beginning I had tried it with serial monito. Later I tried resetting ESP, using it without serial monitor and without connecting it to my PC. My ESP is plugged to my PCB and has external power supply. With it and without connecting to PC it works on my home wifi, but h
On serial monitor I wrote Serial.printlns under calling the following function. They contained sending times thanks to millis() function.
Sending is divided into 2 parts because only in that way I am able to send data to 2 channels at once. I've commented one but result was the same.
for(a=0; a<8; a++)
ESP.wdtFeed(); //optional to prevent watchdog triggering
for(a=8; a<15; a++)
I don't parse any data on server. ON ESP I'm deleting min/max values only, then solving few equations and then writing them using ThingSpeak.setField. Even ESP is connected to my phone, the data doesn't leave it. Phone isn't on sleep mode and has all permissions.
My sending code is based on these two from Mathworks examples:
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:Matthewdupreez1, sbhunu, pabcstar, johnhutcheson1, madhuhada, dayne
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457