Send A Connect Packet - Digi XBee 3 Cellular LTE-M User Manual

Smart modem
Table of Contents

Advertisement

Examples: IOT protocols with transparent mode
Field name
Client ID
The following table provides the CONNECT flag bits from byte 8, the CONNECT flags byte.
CONNECT Flag Bit(s)
User name flag
Password flag
Will retain
Will QoS
Will flag
Clean session
Reserved

Send a connect packet

Now that you know what a connect packet looks like, you can send a connect packet to a broker and
view the response. Open XCTU and click the Configuration working mode button.
1. Ensure that the device is set up correctly with the SIM card installed and the antennas
connected as described in
2. Open XCTU and click the Configuration working mode
3. Add the XBee Smart Modem to XCTU. See
4. Select a device from the Radio Modules list. XCTU displays the current firmware settings for
that device.
5. In the AP field, set Transparent Mode to [0] if it is not already and click the Write button.
6. In the DL field, type the IP address or the fully qualified domain name of the broker you wish to
use. This example uses test.mosquitto.org.
7. In the DE field, type 75B and set the port that the broker uses. This example uses 75B, because
the default MQTT port is 1883 (0x75B).
8. Once you have entered the required values, click the Write button to write the changes to the
XBee Smart Modem.
9. Click the Consoles working mode button
device. For instructions on using the Console, see the
10. Click the Open button
11. From the AT console, click the Add new packet button
Add new packet dialog appears.
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
Description
The length of the ID (in bytes) precedes the ID itself. Each client connecting to a
broker must have a unique client ID. In the example, the ID is DIGI. When using
the Paho MQTT Python libraries, a random alphanumeric ID is generated if you do
not specify an ID.
Bit 7
Bit 6
0
0
Connect the
to open a serial connection to the device.
Bit 5
Bit 4
Bit 3
0
0
0
hardware.
button.
Add a device to
XCTU.
on the toolbar to open a serial console to the
AT console
topic in the
in the Send packets dialog. The
Get started with MQTT
Bit 2
Bit 1
Bit 0
0
1
0
XCTU User
Guide.
73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee 3 cellular nb-iot

Table of Contents