Bluetooth Low Energy for Smart Plug
Dependencies: BLE_API mbed nRF51822
Fork of SmartPlugBLE by
Diff: BLECommunication.h
- Revision:
- 2:6db5c9a2894c
- Parent:
- 0:25ad6eba7916
- Child:
- 3:aaa92c61931a
--- a/BLECommunication.h Tue Jul 07 04:58:28 2015 +0000 +++ b/BLECommunication.h Wed Jul 08 07:25:11 2015 +0000 @@ -6,20 +6,21 @@ #include "MVC.h" #include "mbed.h" +static const char DEVICE_NAME[] = "NRFTEST"; +static const uint16_t list[] = {SPS_UUID_SERVICE}; class BLECommunication { public: + BLECommunication(SmartPlugBLE& system,BLE &_ble); void periodicCallback(void); void start(void); private: BLE &ble; - const uint8_t *DEVICE_NAME; SmartPlugService smartPlugService; - DigitalOut led; }; #endif \ No newline at end of file