Bluetooth Low Energy for Smart Plug

Dependencies:   BLE_API mbed nRF51822

BLECommunication.h

Committer:
Slepnir
Date:
2015-07-13
Revision:
3:aaa92c61931a
Parent:
2:6db5c9a2894c

File content as of revision 3:aaa92c61931a:

#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