Device access
stone ... 2021-01-25 Less than 1 minute
#
# 一、Device connection
Take mqttfx as an example, download address://ci.iotn2n.com/shuwa/oem/mqttfx.zip
# 1. Configure connection
- Broker Address:132.232.119.105
- Broker Port:1883
- Client ID:Fill in the device ID
- User Name Password:Rule engine configuration
such as:
SELECT clientid, connected_at FROM "$events/client_connected" WHERE username = 'ammeter'
1
# 2. send messages
- topic:Fill in the device release topic
- Sending content: the physical model json string of the product to which the device belongs
- Sending {"electric_fr":99}
# 3. Channel view log
- Select aisle, and subscription log
- Print log when mqtt connects
- Print log when mqtt sends a message
- Print log whenever mqtt is disconnected