The topic for today is how to connect IoT to cloud, by Prof. Budi Rahardjo π
The preparation before presentation and demo. Making sure internet connection was stable π
What is MQTT?
Concept of Queue
The audience (a few more were coming late)
Example of queue system is RabbitMQ
The stuff for demo
Pak BR used DyCodeX Espectro because it already has wifi module on board π
MQTT communication model
Brokers. The open source one is Mosquitto
Starting up Mosquitto
subscribing to HiveMQ
The client
The code
It worked just fine, with DyCodeX Espectro π
Compiling code with PlatformIO
The topic can be subscribed from an Android phone with MQTT apps. Look on the right, when the publisher send a message to turn on/off the LED, Espectro LED on board will be on/off and the switch on Android will be checked/unchecked.
The code can be in Python too π With paho library
The code can be compiled with Arduino IDE too
We learned so much thing today π
After class, we tried to set up a publisher and subscriber on Android phones
Yea it worked π
The phone on the left is publisher and the right one is subscriber. Notice that the right oneΒ display anything inputted by the left one π
With this platform we can create so much things! Will be reporting more updates very soon π