Projet s5 - sensors lib
Dependencies: XBeeLib mbed-rtos mbed
xbeeutils.h
00001 /* xbeeutils.h 00002 * Guillaume Hivert, Marc-Olivier Lavoie, Gabriel Gibeau-Sanchez 00003 * Université de Sherbrooke, S5 project 00004 * 00005 * Provides high-level functions to initialize and control xbee communication. 00006 * Inspired by https://os.mbed.com/teams/Digi-International-Inc/code/XBeeLib/wiki/Discovering-nodes-in-the-network 00007 */ 00008 00009 #ifndef XBEEUTILS_H 00010 #define XBEEUTILS_H 00011 00012 #include "XBeeLib.h" 00013 #include "ProcessControl.h" 00014 //#include "EthCommunication.h" 00015 00016 using namespace XBeeLib; 00017 00018 void discover(); 00019 void xbee_init(); 00020 void send_data_to_coordinator(char *message, int length); 00021 RemoteXBeeZB get_remote_node(); 00022 void xbee_send(const RemoteXBeeZB& xbzb, char * msg, int length); 00023 void xbee_broadcast(char *message, int length); 00024 void process_rx_frames(); 00025 int split (char *str, char c, char ***arr); 00026 00027 #endif
Generated on Wed Jul 20 2022 22:26:41 by
1.7.2
