Xiaofei Qiu / Xbee
Embed: (wiki syntax)

« Back to documentation index

Xbee Class Reference

Xbee Class Reference

Xbee class. More...

#include <Xbee.h>

Public Member Functions

 Xbee (PinName tx=p9, PinName rx=p10, PinName rst=p11)
 Use p9 and p10 as default serial pins and p11 for reset.
void Reset ()
 Reset Xbee before use it.
void Send (const char &)
 Send 8 bit data.
void Recv (char &)
 Read 8 bit data.

Detailed Description

Xbee class.

Author Xiaofei Qiu

Definition at line 8 of file Xbee.h.


Constructor & Destructor Documentation

Xbee ( PinName  tx = p9,
PinName  rx = p10,
PinName  rst = p11 
)

Use p9 and p10 as default serial pins and p11 for reset.

Definition at line 6 of file Xbee.cpp.


Member Function Documentation

void Recv ( char &  buffer )

Read 8 bit data.

Definition at line 37 of file Xbee.cpp.

void Reset (  )

Reset Xbee before use it.

Definition at line 11 of file Xbee.cpp.

void Send ( const char &  buffer )

Send 8 bit data.

Definition at line 20 of file Xbee.cpp.