tttapa / ESP8266

Documentation and help with the ESP8266 chip/boards/modules
GNU General Public License v3.0
645 stars 283 forks source link

Using ESP as client to upload sensor data to a server through websocket (socket.io) #29

Open tmarasco125 opened 5 years ago

tmarasco125 commented 5 years ago

Hi Peter!

Thanks for this extensive write up on the ESP! I have a quick question: I'd like to take sensor data from a heart rate sensor and send that to a server through a websocket in order to generate audiovisuals on a second webpage. The ESP would be a client, and I ideally would like to utilize socket.io on the server side (and maybe on the ESP itself). My question is: how would I modify your websocket example so that instead of hosting the server on the ESP, it was sending sensor data to a server once it made a connection? What would need to be modified in order to get this to work?

Thanks for your help!

Sincerely,

Tony

Ayebilla commented 5 years ago

@tmarasco125 thank you for asking this question! I am sure Peter gave you a response. I am doing a similar thing but getting an RFID tag information which i want the ESP to send to database on another server. Is it possible to share your bits of your code that may help me accomplish this? Thanks in advance! Ayebilla