Update for latest nRF51822 code changes.
Dependencies: BLE_API nRF51822
Fork of Puck by
Diff: Puck.hpp
- Revision:
- 0:718051934fdb
- Child:
- 1:29b2cca0d529
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Puck.hpp Tue Jul 15 14:33:09 2014 +0000 @@ -0,0 +1,30 @@ + #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__ \ No newline at end of file