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

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
ESP8266 (Arduino IDE) - send data to Thingspeak as well as displaying data on a local webserver
Avatar
dukbilt

Silver
Forum Posts: 7
sp_UserOfflineSmall Offline
1
July 5, 2016 - 5:25 pm
sp_Permalink sp_Print

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?

 

Ewan

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

winnieeq69

AutoCheernpen

Bostermet

engladNed

iivenul

olewaeayafaku

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee