Library for Bluetooth Low Energy Module ble 4.0 HM-11
Diff: hm11.cpp
- Revision:
- 3:d32bdfd04d82
- Parent:
- 0:df4bd867616e
- Child:
- 5:9a00e7bb0275
--- a/hm11.cpp Sun Nov 01 21:35:35 2015 +0000 +++ b/hm11.cpp Mon Nov 23 00:18:45 2015 +0000 @@ -85,6 +85,12 @@ return mSerial.printf(data); } + int HM11::sendDataToDevice(uint8_t * byteData,uint8_t dataLength){ + + return mSerial.write(byteData,dataLength); + } + + int HM11::isRxDataAvailable(){ return mSerial.readable();