Bluetooth Low Energy for Smart Plug
Dependencies: BLE_API mbed nRF51822
Fork of SmartPlugBLE by
Diff: SPCommunication.h
- Revision:
- 4:721ae30c92f8
- Parent:
- 3:aaa92c61931a
--- a/SPCommunication.h Mon Jul 13 13:14:34 2015 +0000 +++ b/SPCommunication.h Tue Jul 14 10:10:19 2015 +0000 @@ -52,12 +52,13 @@ void printData(); uint8_t getCRC(uint8_t val); uint8_t readData(); + Serial SPUart; private: uint8_t size; uint8_t *DataArr; uint8_t checkSum(uint8_t const message[], int nBytes); - Serial SPUart; + uint8_t RxBuffer[128];