lakmalp
Posts: 6
Joined: Thu Jul 04, 2013 4:57 pm

ESP8266, MQTT, GSM

Sat Aug 20, 2016 7:36 pm

Hi,

I have a requirement to send sensor data (wireless) to a hub and forward that information as text messages to a mobile phone. My plan is to use ESP8266 to transmit sensor data over wi-fi. As I have heard, RPi 3 comes with built-in wi-fi.

Can I configure RPi as a Wi-Fi access point and install MQTT broker in the same RPi so that I can receive data send from sensors and forward it to GSM module?

If above arrangement is not feasible, can you please propose a way to do it?

My requirement is to collect (wireless) sensor data by a central unit and forward that data to a phone as an SMS.

Thanks in advance,

Lakmal

User avatar
DougieLawson
Posts: 39301
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: ESP8266, MQTT, GSM

Sun Aug 21, 2016 1:48 am

That seems like a very sensible design.

Get Mosquitto from http://mosquitto.org/2013/01/mosquitto- ... epository/ (not from the ancient version that's part of Raspbian).

The latest version from the mosquitto repo includes websockets which you could drive from your ESP8266s as that's easier than having to build MQTT client code on there.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

lakmalp
Posts: 6
Joined: Thu Jul 04, 2013 4:57 pm

Re: ESP8266, MQTT, GSM

Sun Sep 04, 2016 5:38 pm

Sorry for the late reply. I will read more about websockets and your suggestion and will post if I would like to know more information.

Thank you for helping me out... (Y)

Return to “Advanced users”