Update for latest nRF51822 code changes.

Dependencies:   BLE_API nRF51822

Fork of Puck by Nordic Pucks

Puck.hpp

Committer:
stiaje
Date:
2014-07-17
Revision:
2:38614fd0fcce
Parent:
1:29b2cca0d529

File content as of revision 2:38614fd0fcce:

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