
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide 9
Enable incoming TCP sockets in API mode 159
API mode behavior for outgoing TCP and TLS connections 159
API mode behavior for outgoing UDP data 160
API mode behavior for incoming TCP connections 160
API mode behavior for incoming UDP data 161
Transparent mode behavior for outgoing TCP and TLS connections 161
Transparent mode behavior for outgoing UDP data 162
Transparent mode behavior for incoming TCP connections 162
Transparent mode behavior for incoming UDP connections 162
Extended Socket frames
Examples 163
Available Extended Socket frames 164
Extended Socket example: Single HTTP Connection 164
Send a Socket Create frame 164
Receive a Socket Create response 165
Send Socket Connect 165
Receive a Socket Connect Response 165
Receive a Socket Status 166
Send HTTP Request using Socket Send frame 166
Receive TX Status 167
Receive one or more Receive Data frames 167
Receive Socket Status indicating closed connection 168
Extended Socket example: UDP 168
Send a Socket Create frame 168
Receive a Socket Create response 169
Bind local source addres 169
Receive Bind/Listen Response 169
Send to Digi echo server 170
Receive TX Status 170
Receive echoed data 170
Send to Digi time server 171
Receive TX Status 171
Receive daytime value 171
Close the socket 172
Receive close response 172
Extended Socket example: TCPListener 173
Send a Socket Create frame 173
Receive a Socket Create response 173
Designate the socket as a listener 173
Receive a Socket Bind/Listen Response 174
Making a connection to the listener socket 174
Receiving Data from the new socket 175
Receive a Socket Status indicating closed connection 175
Transport Layer Security (TLS)
Specifying TLS keys and certificates 178
Transparent mode and TLS 179
API mode and TLS 179
Key formats 179
Certificate formats 179
Certificate limitations 179