Skip to content

Latest commit

 

History

History

mqtt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Rightech IoT with MQTT

Quick start

1. Create MQTT model

Create MQTT Model

2. Create object

Create MQTT Object

3. Send some payloads

Publish MQTT data

For example with mosquitto_pub client from Eclipse Mosquitto project.

$ mosquitto_pub -d -h dev.rightech.io -i <ric-mqtt-client-id> -t base/state/temperature -m 23
$ mosquitto_pub -d -h dev.rightech.io -i <ric-mqtt-client-id> -t base/state/temperature -m 24

Or any other MQTT client tool like:

Examples

101 Hello MQTT

Connect to Rightech IoT and publish to some topics.
(Also listen to some commands)

WARNING: Using only MQTT clientId is very basic and examplish method of device identification/authentication.
We recommend using X.509 client certificates, or at least MQTT username/password pair.

Board Framework Example
Raspberry Pi Node.js 101-hello.js
NodeMCU Arduino 101-hello.ino

102 Connect DHT11

Board Framework Example
Raspberry Pi Node.js 102-dht11.js
NodeMCU Arduino 102-dht11.ino

103 Publish and subscribe JSON

Board Framework Example
Raspberry Pi Node.js 103-json.js
NodeMCU Arduino 103-json.ino

104 TLS

Board Framework Example
Raspberry Pi Node.js 104-tls.js
NodeMCU Arduino 104-tls.ino

201 RTOS

Board Framework Example
ESP32 ESP-IDF esp-idf

Connect

Project With example model Config
ESPHome - config.yaml
OpenMQTTGateway model.json -
OctoPrint model.json config.yaml
zigbee2mqtt model.json configuration.yaml
LoRa Server model.json -