Transfer data using MQTT protocol#
Note
Only applicable to scanners that support Wi-Fi transmission, such as DS2800.
Set up the MQTT broker server#
Use a server to host an MQTT broker; barcode data uploaded by the scanner is forwarded through the server.
Demo software#
EMQX open-source download: EMQX
Test service#
MQTT Broker test service example#
Note
Server connection information
Host:mqtt.handy.pubPort:1883Username:netumPassword:netum@2022
For testing only. Do not use in production.
Configure scanner#
Configure Wi-Fi and Broker#
Note
The scanner uses port
1883by default to connect to the MQTT Broker.The default topic content for scanner subscriptions is
device ID.
Modify MQTT connection port#
Modify scanner publishing topic#
Modify scanner subscription topic#
Receive data#
Use MQTT client software MQTTX to connect to the Broker server and subscribe to the topic where the scanner publishes messages.
MQTTX subscription example#