Views:

🧾 Description

📌 MQTT works on a simple principle:

a client (CODiscan from Gateway) publishes a message on a “topic,” a broker receives it, and then redistributes it to all clients subscribed to that topic.
It is a lightweight protocol designed for the IoT and low-bandwidth networks.

🔑 Key elements required to transmit data with MQTT

  • MQTT Client — The device or application that sends (publishes) or receives (subscribes to) messages. Examples: sensors, microcontrollers, apps, servers.

  • Broker MQTT — The central server that receives all messages and redistributes them to the right subscribers. Without a broker, no communication is possible.

  • Topic — A named channel where messages are published. Example: home/livingroom/temperature.

  • Payload — The actual data being transmitted JSON.

🛠️ Resolution Steps

The CODIScan must be paired to the Gateway.
The Gateway must be set correctly first regarding WIFI settings. Have a look in Aladdin tool.
When the Gateway is connected to the Access Point and with Internet access, the "Cloud" LED lights up.   SOLID YELLOW   


🔌Gateway connection and settings:

  1. Plug the Gateway on your PC using USB cable.

  2. Scan the barcode on the Gateway to link the CODIScan
  3. Scan Restore USA Default:

     
  4. Scan WIFI INTERFACE:
  5. Use Aladdin tool to set the ESSID and the PASSWORD of your Wifi access point Need Internet access)
     

⚠️ The wifi support ONLY 2.4Ghz.

✨ Additionnals and mandatory settings (this is an example, you can also use your own ones):
 

Broker hostname:broker.emqx.io
Broker port:1883
Data TX topic:DL
Scan these settings with the CODiScan:

At this step, we advise to disconnect the Gateway from the USB port and reconnect it again.

Wait until the "Cloud" LED lights up  SOLID  BLUE  


Test in real time:

install MQTTX PC app: https://mqttx.app/downloads (x86-64 - v1.13.0.win64.exe):

 

After installation, open the MQTT application:
Add a new connection and do as follow and click on “connect” button:
 



Add “new subscription” and fill “DL” and click “Confirm”:



Now you can scan a barcode, you should receive it in the MQTTX application:


 

 

 

 

 

Add a comment