Extended Socket frames Extended Socket example: Single HTTP Connection
Digi XBee® 3 Cellular LTE Cat 1 AT&T Smart Modem User Guide
169
7E 00 4C 44 01 00 00 47 45 54 20 2F 72 61 6E 64 6F 6D 2F 74 72 69 76 69 61 20 48
54 54 50 2F 31 2E 31 0D 0A 48 6F 73 74 3A 20 6E 75 6D 62 65 72 73 61 70 69 2E 63
6F 6D 0D 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 63 6C 6F 73 65 0D 0A 0D 0A B6
Receive TX Status
Extended sockets use the existing TX Status frame (0x89) to report acceptance of the data for
transmit.
Field Value
Frame type
0x89 (TX Status)
Frame ID 0x01
Status 0x00 (Success)
TX Status received from XBee data:
7E 00 03 89 01 00 75
Receive one or more Receive Data frames
The server will respond with an interesting fact about a number. The following information is a sample
response. Multiple frames may be needed to contain the full response content depending on size and
network conditions.
Field Value
Frame type
0xCD (Socket Receive)
Frame ID 0x00
Socket ID 0x00
Status 0x00
Payload
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Thu, 18 Jul 2019 16:13:47 GMT
Content-Type: text/plain; charset="UTF-8"; charset=utf-8
Content-Length: 53
Connection: close
X-Powered-By: Express
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: X-Requested-With
X-Numbers-API-Number: 270
X-Numbers-API-Type: trivia
Pragma: no-cache
Cache-Control: no-cache
Expires: 0
270 is the average number of days in human pregnancy.
Receive Data received from XBee containing web service response: