XBee API operation library for mbed for miniprojects

Dependencies:   SmartLabXBeeCore

Fork of SmartLabXBeeAPI2 by CHENGQI YANG

XBeeAPI.cpp

Committer:
yangcq88517
Date:
2015-11-14
Revision:
7:6a9c4d7da3a1
Parent:
2:723cccd7659a

File content as of revision 7:6a9c4d7da3a1:

#include "XBeeAPI.h"

XBeeAPI::XBeeAPI(PinName tx, PinName rx)
    :CoreAPI(new SerialData(tx, rx), false)
{}

XBeeAPI::XBeeAPI(PinName tx, PinName rx, bool isEscape)
    :CoreAPI(new SerialData(tx, rx), isEscape)
{}

XBeeAPI::XBeeAPI(PinName tx, PinName rx, int baudRate, bool isEscape)
    :CoreAPI(new SerialData(tx, rx, baudRate), isEscape)
{}

XBeeAPI::XBeeAPI(ISerial * serial, bool isEscape)
    :CoreAPI(serial, isEscape)
{}