Home automation using Xbee radios

Dependencies:   EthernetNetIf HTTPServer RPCInterface mbed C12832_lcd

Link to Notebook Page

XbeeCommLib.h

Committer:
chrisisthefish
Date:
2013-12-02
Revision:
8:e32fcca16102
Child:
9:4b1e3531dd00

File content as of revision 8:e32fcca16102:

#include "mbed.h"
#include "C12832_lcd.h"


extern unsigned char data[500];
extern int dataCounter;
extern bool clear;

//extern DigitalOut led1;
//extern DigitalOut led2;
//extern DigitalOut led3;
//extern DigitalOut led4;

extern Serial xbeeSerial;
extern C12832_LCD lcd;
//extern LM75B sensor;
//extern PwmOut green;
//extern PwmOut blue;
//extern PwmOut red;

//extern unsigned int  router0_addrHigh;
//extern unsigned int  router0_addrLow;
//
//extern unsigned int  router1_addrHigh;
//extern unsigned int  router1_addrLow;

extern struct xbee *root;


float getAnalogVoltage(int analogInputIndex, int totalPacketBytes, int digitalSampleBytes);

void digitalWriteXbee(unsigned int addrHigh, unsigned int addrLow, int outputIndex, bool value);

void monitorXbee();

struct xbee* addnode(struct xbee*,unsigned int,unsigned int );
int getDigitalValue(int , short );
void digitalInputHandle(struct xbee* ,unsigned int , unsigned int , unsigned short );
void analogInputHandle(struct xbee* ,unsigned int , unsigned int , int , float );

//void up( void );
//void down( void );
//void left( void );
//void right( void );