Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Xbee.h
- Committer:
- Xiaofei
- Date:
- 2015-11-28
- Revision:
- 30:18ef9d8f1eea
- Parent:
- 29:7b328499f9cf
- Child:
- 31:84e27d1b86a6
File content as of revision 30:18ef9d8f1eea:
#pragma once
#include "mbed.h"
class Xbee
{
public:
    // Use p9 and p10 as default serial pins
    Xbee(PinName tx = p9, PinName rx = p10, PinName rst = p11);
    
    // Reset
    void Reset();
    
    // Send buffer
    void Send(const char&);
    
    // Read buffer
    void Recv(char&);
        
private:
    Serial _xbee;
    DigitalOut _rst;
};