BLIIOT Industrial Ethernet Remote I/O Module Application 30--MQTT Client configuration
BLIIoT--Beilai Tech.Co.,Ltd.
4G RTU&Router, IoT IIoT Gateway, Modbus/BACnet/IEC104/OPC UA/PLC Gateway, Profinet/EtherCAT/EthernetIP/Modbus IO Modules
Client configuration
1)?Communication protocol: MQTT?protocol
2)?Server IP domain name: King Pigeon Cloud 2.0 default:mqtt.dtuip.com
3)?Port: Broker Server Port number(King Pigeon Cloud 2.0 default:1883).
4)?Subscription topic: Client subscribe topic (King Pigeon cloud 2.0 default:?serial number/?+)
5)?Publish topic: Device publish data topic (King Pigeon cloud 2.0 default:?serial number/?+).
6)?Mqtt client?ID: the unique identification, which can be serial number, device ID, or IMEI code (KingPigeon Cloud 2.0 default is serial number)
7)?Mqtt user name: Device's account on the broker server (King Pigeon Cloud 2.0 default is MQTT)
8)?Mqtt password:Password of device's account on the broker server(King Pigeon Cloud 2.0 default is MQTTPW)
9)?Supplementary transmission: check to enable supplementary transmission, after enabling it, the data during the offline period will be supplemented when reconnected to the cloud platform
?
After the configuration is completed, the client will initiate a connection to the server:
Connect: the client sends a connect message request to the server;
Connack: the server responds to a connack confirmation message, indicating that the connection is successful;
After the client establishes a connection, it is a long connection, and the client can publish or subscribe messages on the server;
Take devices and customers' mobile phones as clients
After the device publishes the topic on the proxy server, customers can view the data through subscription.That is, the device is the publisher, and the customer's mobile phone is the subscriber.
Similarly, users can control the device by publishing topics through the mqtt server.That is, the user is the publisher and the device is the subscriber.