Page
40 of 52
King Pigeon Communication Co., Ltd.
www.iot-solution.com
Wireless Data Acquisition System - LoRa Gateway BL280
1) Communication Protocol: Select
MQTT
protocol,
2) Server IP/Domain Name: Broker server domain name (King Pigeon Cloud 2.0 domain name is
mqtt.dtuip.com),
3) Server Port: Broker server port (King Pigeon Cloud 2.0 server port is
1883),
4) Subscribe Topic: Subscription topic when device receives data from cloud (King Pigeon Cloud
2.0 subscription topic is
Device serial number /+)
5) Publish Topic: The topic of publishing message when device sends data to cloud (King Pigeon
Cloud 2.0 Publish Topic is
Device serial number)
6) MQTT Device ID: The only identification mark of device. Can be serial number, device ID, or
IMEI code (King Pigeon Cloud 2.0 MQTT Device ID is
Device serial number)
7) MQTT User Name: Account for device to publish topic in broker server (King Pigeon Cloud 2.0
MQTT user name is
MQTT)
8) MQTT Password: Account Password for device to publish topic in broker server (King Pigeon
Cloud 2.0 User Password is
MQTTPW)
Once configuration is done, client will initiate connection to server:
CONNECT:
Client sends one CONNECT request message to server
CONNACK:
Server responds with a CONNACK message to knowledge connection success
Once connection is established, client can publish or subscribe messages in server.
Below is the example of using gateway device and user mobile phone as client:
After gateway device publishes topic in broker server, user can view data on mobile phone through
subscription, i.e. gateway device is publisher, user mobile phone is subscriber.
User can also control gateway device through MQTT server publishing topic, i.e. user mobile phone
is publisher, gateway device is subscriber.
(4) Data Format of Valid Payload in Device Published Message