Newbee: Very general question wrt iot usage of the esp
Posted: Sat Jan 02, 2016 8:43 am
Hi everyone;
I hope I am in the right thread to post this.... I read through a lot of posts / searched the forum w/o finding an answer, so here it goes:
This is what I want to do:
I would like to use an esp (programmed via Arduino IDE) to read a gasmeter (reed switch on an gpio): Each time the reed switch is activated (shortest interval 3 seconds), the esp should send the reed switch count (and possibly a time stamp) over the Wlan to a Server (running Ubuntu), where this information needs to be stored in a file. (visualisation / analysis of this data will be done independently)
My question: How can the communication part be established in the most lightweight & simplest way - on the esp as well as the server side?
What protocol to use ? Bare tcp? Udp? Mqtt? Other?
I am searching for the lightest solution, which a newbee like me can implement fairly easily - on both ends.
(The server side is running a barebone ubuntu on a small atom based device ("Joggler"); main purpose of this setup is beeing a Music server w a dedicated gui, so the solution I am looking for should run headless.
Hope anybody can help me with this. Thanks - and: great forum - great people!
I hope I am in the right thread to post this.... I read through a lot of posts / searched the forum w/o finding an answer, so here it goes:
This is what I want to do:
I would like to use an esp (programmed via Arduino IDE) to read a gasmeter (reed switch on an gpio): Each time the reed switch is activated (shortest interval 3 seconds), the esp should send the reed switch count (and possibly a time stamp) over the Wlan to a Server (running Ubuntu), where this information needs to be stored in a file. (visualisation / analysis of this data will be done independently)
My question: How can the communication part be established in the most lightweight & simplest way - on the esp as well as the server side?
What protocol to use ? Bare tcp? Udp? Mqtt? Other?
I am searching for the lightest solution, which a newbee like me can implement fairly easily - on both ends.
(The server side is running a barebone ubuntu on a small atom based device ("Joggler"); main purpose of this setup is beeing a Music server w a dedicated gui, so the solution I am looking for should run headless.
Hope anybody can help me with this. Thanks - and: great forum - great people!