Bluetooth Low Energy for Smart Plug

Dependencies:   BLE_API mbed nRF51822

Fork of SmartPlugBLE by Pavit Noinongyao

BLECommunication.h

Committer:
Slepnir
Date:
2015-07-14
Revision:
4:721ae30c92f8
Parent:
3:aaa92c61931a

File content as of revision 4:721ae30c92f8:

#ifndef BLE_COMMUNICATION_H
#define BLE_COMMUNICATION_H

#include "BLE.h"
#include "Services/SmartPlugService.h"
#include "MVC.h"
#include "mbed.h"

static const char DEVICE_NAME[] = "SmartPlug";
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;
    SmartPlugService smartPlugService;
};

#endif