Containerised YottaDB native MQTT subscriber/publisher.
Build using the following code:
https://github.com/informatik-aalen/GTMQTT
Docker image:
https://hub.docker.com/repository/docker/ramb0/yottadb-mqtt
-
Create a free/paid Gitpod account - https://www.gitpod.io/
-
Log into the account
-
Open a new browser tab and add gitpod.io/#https://github.com/RamSailopal/YottaDB-MQTT to the address - This will create a new Gitpod cloud instance.
-
Two terminals will run, one will drop you into a YDB prompt and one will subscribe to the topic yottadb/test at test.mosquitto.org and display messages. At the YDB prompt, type the following:
D CONNECT^MQTT("test.mosqutto.org","1883","","") D PUBLISH^MQTT("yottadb/test","test message")
You should see test message appear in the other terminal window that shows messages.