Gabriel Gibeau Sanchez / Mbed 2 deprecated Projet_S5_Mobile_local

Dependencies:   XBeeLib mbed-rtos mbed

Committer:
ghivert
Date:
Mon Dec 04 20:42:05 2017 +0000
Revision:
5:2732931df96c
Parent:
3:e76f0ece91ef
Child:
8:62898720a01d
save configs when receiving message

Who changed what in which revision?

UserRevisionLine numberNew 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"
ghivert 5:2732931df96c 13 #include "ProcessControl.h"
ggs22 3:e76f0ece91ef 14 //#include "EthCommunication.h"
ggs22 3:e76f0ece91ef 15
ggs22 3:e76f0ece91ef 16 using namespace XBeeLib;
ggs22 3:e76f0ece91ef 17
ggs22 3:e76f0ece91ef 18 void discover();
ggs22 3:e76f0ece91ef 19 void xbee_init();
ggs22 3:e76f0ece91ef 20 void send_data_to_coordinator(char *message, int length);
ggs22 3:e76f0ece91ef 21 void test();
ggs22 3:e76f0ece91ef 22 void xbee_broadcast(char *message, int length);
ggs22 3:e76f0ece91ef 23 void process_rx_frames();
ggs22 3:e76f0ece91ef 24 int split (char *str, char c, char ***arr);
ggs22 3:e76f0ece91ef 25
ggs22 3:e76f0ece91ef 26 #endif