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
Diff: Xbee/xbeeutils.h
- Revision:
- 3:e76f0ece91ef
- Child:
- 5:2732931df96c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Xbee/xbeeutils.h Mon Dec 04 14:32:33 2017 +0000 @@ -0,0 +1,25 @@ +/* xbeeutils.h + * Guillaume Hivert, Marc-Olivier Lavoie, Gabriel Gibeau-Sanchez + * Université de Sherbrooke, S5 project + * + * Provides high-level functions to initialize and control xbee communication. + * Inspired by https://os.mbed.com/teams/Digi-International-Inc/code/XBeeLib/wiki/Discovering-nodes-in-the-network +*/ + +#ifndef XBEEUTILS_H +#define XBEEUTILS_H + +#include "XBeeLib.h" +//#include "EthCommunication.h" + +using namespace XBeeLib; + +void discover(); +void xbee_init(); +void send_data_to_coordinator(char *message, int length); +void test(); +void xbee_broadcast(char *message, int length); +void process_rx_frames(); +int split (char *str, char c, char ***arr); + +#endif \ No newline at end of file
