This repository contains MQTT resources for ioThinx 4510.
- ioThinx 4510
- Firmware: V1.1.0_Build19043017
- Slot: 45MR-2606
- Firmware: V1.1.0_Build19043017
- Python 3.4+
- Eclipse Paho™ MQTT Python Client
- MQTT Client Dashboard
- Node.js
Install Paho MQTT Python client library using pip:
$ sudo pip install paho-mqtt
Clone this repository:
$ git clone https://github.com/supr3m3/moxa-advanced-controllers-and-io
$ sudo apt-get install nodejs
$ git clone https://github.com/supr3m3/moxa-advanced-controllers-and-io
$ npm install
$ node app.js
Define MQTT parameters.
MQTT_HOST = "<MQTT Broker>"
MQTT_PORT = <value> # default: 1883
MQTT_KEEPALIVE = <value> # default: 30s
MQTT_TOPIC = 'ioThinx_4510/#' # Subscribe to all messages from ioThinx 4510
This publisher script will change the D0-00
value to 1
on the ioThinx-4510 (45MR-2606).
$ python ioThinx-4510-45MR-2606-pub.py -t 00 -v 1
- Develop a real-time dashboard to monitor
and controlioThinx with Node.js, MQTT, and Socket.io. - Python scripts for other 45MR modules.