ESP8266 (Arduino IDE) - send data to Thingspeak as well as displaying data on a local webserver | ThingSpeak Projects | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.

Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
ESP8266 (Arduino IDE) - send data to Thingspeak as well as displaying data on a local webserver
No permission to create posts
July 5, 2016
5:25 pm

Forum Posts: 7
Member Since:
July 2, 2016
sp_UserOfflineSmall Offline

Hello everyone,

I want to decode RS-485 data and then send this to Thingspeak, as well as read this data from the ESP8266 (using something like a local webserver on the ESP8266). I am coding it using the Arduino IDE 1.6.9 with the ESP8266 add-in module. In essence, I want to be able to connect to the ESP8266 via a web browser to not only see the data but to also use it for debugging (once it's programmed it gets connected outside and it's difficult to connect via a serial cable - so if I can get this functionality working it's something I expect to use for any other ESP8266 project).

I want to:

  1. Check for data every 30 seconds (to keep it simple, we'll just call it 'x')

  2. If a client connects to the local webserver, send them the value of 'x'

  3. Send the value of 'x' to Thingspeak every 5 minutes

  4. Repeat

I have managed to write some code that reads and displays my data, and I have written some code that reads the data and sends it to Thingspeak. However, combining the two doesn't seem to work. The more I look at example code, the more confused I get - but at the same time I have a feeling that there is a much simpler way of doing things...

Any suggestions?



Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
35 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

tran, huldacormier, bogart, estebanmateo93, mikewrite, onlinebusiness

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457