Short Talk: MQTT4Snap!

View on Snap!Con

Presented By: Xavier Pi, Bernat Romagosa


Abstract:

We present an MQTT library for Snap ! (https://github.com/pixavier/mqtt4snap) along with an example of two Snap ! instances communicating with each other.

MQTT (Message Queuing Telemetry Transport) is a standard and widely used publish/subscribe protocol for the Internet of Things that allows you to read data from sensors or control actuators that support the MQTT protocol.

The MQTT4Snap ! included blocks are depicted as follows:

Popular microcontroller based boards such as Arduino or NodeMCU, with an Internet connection, and with the corresponding MQTT library, can be controlled directly.

MQTT can also be used to make several Snap ! programs cooperate in real-time, for instance for multiplayer gaming.