Driver for the JY-MCU v1.06 HC-06 Bluetooth module.
Dependents: DISCO-F746NG_rtos_test MbedTableControl
Diff: HC06Bluetooth.cpp
- Revision:
- 17:63261635b153
- Parent:
- 14:73e799413e66
- Child:
- 18:85c0f6580cd8
--- a/HC06Bluetooth.cpp Wed Aug 03 18:49:53 2016 +0000 +++ b/HC06Bluetooth.cpp Wed Aug 03 19:27:59 2016 +0000 @@ -18,7 +18,7 @@ /* HC06 Bluetooth Class Implementation: */ HC06Bluetooth::HC06Bluetooth(PinName TX, PinName RX, Baudrate baudrate, void (*lineCallbackFunc) (const char* readString, size_t strlen), void (*charCallbackFunc) (char readChar)) -: btSerialObj(TX, RX), baudrate(baudrate), lineCallbackFunc(lineCallbackFunc), charCallbackFunc(charCallbackFunc) { +: btSerialObj(TX, RX), baudrate(baudrate), lineCallbackFunc(lineCallbackFunc), charCallbackFunc(charCallbackFunc), dataReceivedBufferPos(0) { btSerialObj.baud(BaudValue[baudrate]); // Set the interrupt to be called when a byte is received.