Receive A Socket Status; Send Http Request Using Socket Send Frame - Digi XBee 3 Cellular LTE-M User Manual

Smart modem
Table of Contents

Advertisement

Extended Socket frames
Field
Frame type
Frame ID
Socket ID
Status
Socket Connect Response received from XBee:
7E 00 04 C2 01 00 00 3C

Receive a Socket Status

The socket has been fully established when a Socket Status frame is received with the connected
status after the socket has connected.
Field
Frame type
Socket ID
Status
Socket Status received from XBee with connected status:
7E 00 03 CF 00 00 30

Send HTTP Request using Socket Send frame

The request uses the "Connection: close" header to have the server close the connection on request
completion. This allows the example to demonstrate the Socket Status reporting of a close by the
peer.
Field
Frame type
Frame ID
Socket ID
Transmit Options
Data
Socket Send frame data:
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
Extended Socket example: Single HTTP Connection
Value
0xC2
(Socket Connect Response)
0x01
0x00
0x00 (Success)
Value
0xCF
(Socket Status)
0x00
0x00 (Connected)
Value
0x44
(Socket Status)
0x01
0x00
0x00
GET /random/trivia HTTP/1.1
Host:
numbersapi.com
Connection: close
166

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee 3 cellular nb-iot

Table of Contents