Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: XBeeLib mbed-rtos mbed
Xbee/xbeeutils.h@3:e76f0ece91ef, 2017-12-04 (annotated)
- Committer:
- ggs22
- Date:
- Mon Dec 04 14:32:33 2017 +0000
- Revision:
- 3:e76f0ece91ef
- Child:
- 5:2732931df96c
commit with sensors lib
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ggs22 | 3:e76f0ece91ef | 1 | /* xbeeutils.h |
| ggs22 | 3:e76f0ece91ef | 2 | * Guillaume Hivert, Marc-Olivier Lavoie, Gabriel Gibeau-Sanchez |
| ggs22 | 3:e76f0ece91ef | 3 | * Université de Sherbrooke, S5 project |
| ggs22 | 3:e76f0ece91ef | 4 | * |
| ggs22 | 3:e76f0ece91ef | 5 | * Provides high-level functions to initialize and control xbee communication. |
| ggs22 | 3:e76f0ece91ef | 6 | * Inspired by https://os.mbed.com/teams/Digi-International-Inc/code/XBeeLib/wiki/Discovering-nodes-in-the-network |
| ggs22 | 3:e76f0ece91ef | 7 | */ |
| ggs22 | 3:e76f0ece91ef | 8 | |
| ggs22 | 3:e76f0ece91ef | 9 | #ifndef XBEEUTILS_H |
| ggs22 | 3:e76f0ece91ef | 10 | #define XBEEUTILS_H |
| ggs22 | 3:e76f0ece91ef | 11 | |
| ggs22 | 3:e76f0ece91ef | 12 | #include "XBeeLib.h" |
| ggs22 | 3:e76f0ece91ef | 13 | //#include "EthCommunication.h" |
| ggs22 | 3:e76f0ece91ef | 14 | |
| ggs22 | 3:e76f0ece91ef | 15 | using namespace XBeeLib; |
| ggs22 | 3:e76f0ece91ef | 16 | |
| ggs22 | 3:e76f0ece91ef | 17 | void discover(); |
| ggs22 | 3:e76f0ece91ef | 18 | void xbee_init(); |
| ggs22 | 3:e76f0ece91ef | 19 | void send_data_to_coordinator(char *message, int length); |
| ggs22 | 3:e76f0ece91ef | 20 | void test(); |
| ggs22 | 3:e76f0ece91ef | 21 | void xbee_broadcast(char *message, int length); |
| ggs22 | 3:e76f0ece91ef | 22 | void process_rx_frames(); |
| ggs22 | 3:e76f0ece91ef | 23 | int split (char *str, char c, char ***arr); |
| ggs22 | 3:e76f0ece91ef | 24 | |
| ggs22 | 3:e76f0ece91ef | 25 | #endif |
