ProCodeCG – BDV – codeMeetUp() #116 IoT Series Day #4 – 20 Nov 2017

Standard

The last day of ProCodeCG – BDV – codeMeetUp() #116 IoT Series πŸ™‚

ProCodeCG - codeMeetUp() #116- IoT Weather Programming Series 4:4 - small

Today we made sure everybody could follow what have been learnt in the previous class

IMG_2541

IMG_2542 IMG_2543

IMG_2544 IMG_2545

IMG_2546

After we’re sure that everybody can gather data from temperature and humidity sensor, we moved on to connecting it to the cloud

IMG_2547

IMG_2548 IMG_2549

Then we learned IoT & MQTT

IMG_2550

And experimenting with publishing and subscribing to MQTT πŸ™‚

IMG_2551

We can do it from mobile apps too πŸ™‚

IMG_2552

We can control (and being controlled LED) of any ESPectro subscribing to “led1” topic and can send and receive text to anyone subscribing and publishing to “pesan” topic

IMG_2553

IMG_2554

At the end we learned to continuously publish data to MQTT, and the next step is to send temperature and humidity data

IMG_2555

This us πŸ˜‰

IMG_2556

Thanks so much all, thanks so much BDV, see you again soon with different topics πŸ™‚

IMG_2557

Advertisements

ProCodeCG codeMeetUp() #90 – BR – IoT and MQTT

Standard

The topic for today is how to connect IoT to cloud, by Prof. Budi Rahardjo πŸ™‚

IMG_0568

The preparation before presentation and demo. Making sure internet connection was stable πŸ™‚

IMG_0569

IMG_0570 IMG_0571

What is MQTT?

IMG_0572

Concept of Queue

IMG_0573

The audience (a few more were coming late)

IMG_0574

Example of queue system is RabbitMQ

IMG_0575

The stuff for demo

IMG_0576

Pak BR used DyCodeX Espectro because it already has wifi module on board πŸ™‚

IMG_0577

MQTT communication model

IMG_0580 2

Brokers. The open source one is Mosquitto

IMG_0581

IMG_0599

Starting up Mosquitto

IMG_0582

subscribing to HiveMQ

IMG_0583

The client

IMG_0584

The code

IMG_0585

It worked just fine, with DyCodeX Espectro πŸ˜‰

IMG_0587

Compiling code with PlatformIO

IMG_0588

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.

IMG_0594 2

The code can be in Python too πŸ™‚ With paho library

IMG_0595

The code can be compiled with Arduino IDE too

IMG_0596 2

IMG_0597 IMG_0598

We learned so much thing today πŸ™‚

IMG_0600

After class, we tried to set up a publisher and subscriber on Android phones

IMG_0602 2

Yea it worked πŸ™‚

IMG_0603

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 πŸ™‚

IMG_0604

With this platform we can create so much things! Will be reporting more updates very soon πŸ™‚