Back | << | Index | >> |
MQTT = Message Queuing Telemetry Transport
We need a broker ( here we consider on the RPI ) :
RPI Side
|
PC Side
|
RPI Side
|
PC Side
|
RPI Side
|
PC Side | RPI Side |
|
|
PC Side | RPI Side |
|
|
web browser can’t support MQTT ; we can make a bridge between our MQTT socket and a websocket.
Here is an example with nodejs:
Raspberry PI Side
In a first terminal :
In a 2nd terminal :
PC Side
Open a web browser and write “192.168.0.2:8080”
|
|
Installations
On atom, install Pymakr package.
Application
We suppose mosquitto broker is at address “192.168.200.179”.
Once the program is running on pycom, in a terminal :
Back | << | Index | >> |