Device access

stone ... 2021-01-25 Device access
  • DEVICE
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 image
  • User Name Password:Rule engine configuration
    such as:
   SELECT clientid, connected_at FROM "$events/client_connected" WHERE username = 'ammeter'
1

image

# 2. send messages

  • topic:Fill in the device release topic image
  • Sending content: the physical model json string of the product to which the device belongs image
  • Sending {"electric_fr":99} image

# 3. Channel view log

  • Select aisle, and subscription log
    image
  • Print log when mqtt connects
    image
  • Print log when mqtt sends a message
    image
  • Print log whenever mqtt is disconnected
    image
Last update: September 15, 2021 11:38