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

Avatar

Please consider registering
Guest

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
Avatar
dukbilt

Silver
Members
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?

 

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: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

celinabw2, FitoSprayscroma, LunnonGor, lancevl16, bernicenk60, veronicadq18

Administrators: Hans: 387, lee: 457