July 2, 2016
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
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...
Most Users Ever Online: 114
Currently Browsing this Page:
Guest Posters: 1
Newest Members:celinabw2, FitoSprayscroma, LunnonGor, lancevl16, bernicenk60, veronicadq18
Administrators: Hans: 387, lee: 457