868 Protocol page
From Digi Developer
This page is to describe the python programming syntax in regards to the 868 radio protocol.
The 868 radio protocol is a point to multi-point protocol that uses 64 bit explicit addressing. There is no cluster ID, profile ID, or end point required for data pass through.
For example, the below code creates a XBee socket on a Digi Gateway device, binds the socket to the local radio, and sends a broadcast to all nodes on the network. The code must be run on the Gateway through its python interpreter.
from socket import * s = socket(AF_XBEE, SOCK_DGRAM, XBS_PROT_TRANSPORT) s.bind(('', 0, 0, 0)) dest = ('[00:00:00:00:00:00:FF:FF]!', 0, 0, 0) s.sendto('Hello', 0, dest)
Another aspect of the protocol is it allows packets of up to 256 bytes in size.