ZigBee Modem Status example for mbed XBeeLib By Digi
Description
This example shows how to register a function callback to be aware of modem status changes. This library will call the registered callback whenever the XBee module radio modem changes its status
See Handling modem status changes chapter for more information.
Common Setup
Make sure you have a valid Example Common Setup
Example Setup
This example does not require any additional setup.
Running the example
Build and deploy the example to the mbed module.
Reset the mbed module so the example starts. You should see the example debug information through the debug interface configured in the 'Local Setup' chapter.
It you set up a network as described in the Common Setup section, you should see following modem status in the debug interface:
- Modem Status 0x0: Corresponds to 'HwReset' meaning 'Hardware reset'
- Modem Status 0x2: Corresponds to 'JoinedNW' meaning 'Joined network (ZigBee routers and end devices)'
Note: You may not see the HwReset modem status if the device is joining to the coordinator fast (within the call to xbee.init())
If you now unplug the network coordinator you should see following modem status in the debug interface:
- Modem Status 0x3: Corresponds to 'Disassociated' meaning 'Disassociated (ZigBee)'
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
9:55657a196edb | 2016-07-29 | hbujanda | Automatic upload |
8:d756319b5bb8 | 2016-07-28 | hbujanda | Automatic upload |
7:91b2b017e462 | 2016-03-31 | hbujanda | Automatic upload |
6:a75fe0a5c249 | 2015-06-01 | spastor | Automatic upload |
5:812eb41298b4 | 2015-05-18 | spastor | Automatic upload |
4:18ca486c0130 | 2015-05-14 | hbujanda | Automatic upload |
3:c16f0a009701 | 2015-05-14 | hbujanda | Automatic upload |
2:c796a5ac7c69 | 2015-05-11 | hbujanda | Automatic upload |
1:d69b2dcc284f | 2015-05-08 | spastor | Automatic upload |
0:0c8d070617b1 | 2015-05-05 | spastor | Automatic upload |