Bluetooth Low Energy for Smart Plug

Dependencies:   BLE_API mbed nRF51822

Fork of SmartPlugBLE by Pavit Noinongyao

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BLECommunication.h Source File

BLECommunication.h

00001 #ifndef BLE_COMMUNICATION_H
00002 #define BLE_COMMUNICATION_H
00003 
00004 #include "BLE.h"
00005 #include "Services/SmartPlugService.h"
00006 #include "MVC.h"
00007 #include "mbed.h"
00008 
00009 static const char DEVICE_NAME[] = "SmartPlug";
00010 static const uint16_t list[] = {SPS_UUID_SERVICE};
00011 
00012 class BLECommunication
00013 {
00014 public:
00015 
00016     
00017     BLECommunication(SmartPlugBLE& system,BLE &_ble);
00018     void periodicCallback(void);
00019     void start(void);
00020     
00021 private:
00022     BLE &ble;
00023     SmartPlugService smartPlugService;
00024 };
00025 
00026 #endif