Bluetooth Low Energy for Smart Plug

Dependencies:   BLE_API mbed nRF51822

Fork of SmartPlugBLE by Pavit Noinongyao

BLECommunication.h

Committer:
Slepnir
Date:
2015-07-07
Revision:
0:25ad6eba7916
Child:
2:6db5c9a2894c

File content as of revision 0:25ad6eba7916:

#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