
Extended Socket frames
Available Extended Socket frames
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
164
Available Extended Socket frames
Note
For information about all frames, see
.
Socket SendTo (Transmit Explicit Data): IPv4 - 0x45
Socket Connect Response - 0xC2
Socket Receive From: IPv4 - 0xCE
Extended Socket example: Single HTTP Connection
This example demonstrates a complete request with an HTTP server. It fetches a random fact about a
number from a web services API offered by the website
Note
Digi is not affiliated with numbersapi.com and the example is for education only.
Send a Socket Create frame
Note
To adapt this example for an HTTPS server, change
Protocol
below to 0x04 (TLS) and optionally
use the
frame to specify a TLS profile.
Field
Value
Frame type
(Socket Create)
Frame ID
0x01
Protocol
0x01 (TCP)
Socket Create frame data:
7E 00 03 40 01 01 BD