Bluetooth Low Energy for Smart Plug
Dependencies: BLE_API mbed nRF51822
Diff: BLECommunication.h
- Revision:
- 0:25ad6eba7916
- Child:
- 2:6db5c9a2894c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BLECommunication.h Tue Jul 07 04:02:14 2015 +0000 @@ -0,0 +1,25 @@ +#ifndef BLE_COMMUNICATION_H +#define BLE_COMMUNICATION_H + +#include "BLE.h" +#include "Services/SmartPlugService.h" +#include "MVC.h" +#include "mbed.h" + + +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