Update for latest nRF51822 code changes.

Dependencies:   BLE_API nRF51822

Fork of Puck by Nordic Pucks

Puck.hpp

Committer:
stiaje
Date:
2014-07-15
Revision:
0:718051934fdb
Child:
1:29b2cca0d529

File content as of revision 0:718051934fdb:

 #ifndef __PUCK_HPP__
 #define __PUCK_HPP__
 
 #include "BLEDevice.h"
 
class Puck {
    private:
        
        BLEDevice _ble;
        
        uint8_t _beaconPayload[25];
        
        bool _connectable;
        
    public:
        /** Initialize the Puck library
         */
        Puck(bool connectable, uint16_t minor);
        
        /** The BLE Device 
          * @return ble device
          */
        BLEDevice ble() { return _ble; }
        
        /** Initialize the BLE Device and start advertising
         */
        void init();
};
 
 #endif // __PUCK_HPP__