Skip to content

This repository contains MQTT resources for ioThinx 4510 Series.

Notifications You must be signed in to change notification settings

supr3m3/mqtt-ioThinx-4510

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ioThinx 4510

This repository contains MQTT resources for ioThinx 4510.

Requirements

  • ioThinx 4510
    • Firmware: V1.1.0_Build19043017
      • Slot: 45MR-2606
  • Python 3.4+
  • Eclipse Paho™ MQTT Python Client
  • MQTT Client Dashboard
    • Node.js

Getting Started

Installation

MQTT Client (Python)

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
MQTT Client (Node.js)
$ sudo apt-get install nodejs
$ git clone https://github.com/supr3m3/moxa-advanced-controllers-and-io
$ npm install
$ node app.js

Example

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

To-do

  • Develop a real-time dashboard to monitor and control ioThinx with Node.js, MQTT, and Socket.io.
  • Python scripts for other 45MR modules.

About

This repository contains MQTT resources for ioThinx 4510 Series.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published