Xiaofei Qiu / Xbee

Xbee.h

Committer:
Xiaofei
Date:
2015-11-22
Revision:
0:633baa9653b0
Child:
2:33462c1e9f45

File content as of revision 0:633baa9653b0:

#pragma once
#include "mbed.h"

class Xbee
{
public:
    // Use p9 and p10 as default serial pins
    Xbee(PinName tx = p9, PinName rx = p10):_xbee(tx,rx){}
    
    // Send buffer
    void Send(const char*);
    
    // Read buffer
    void Recv(char*,const size_t&);
    
private:
    Serial _xbee;
};