Dmitry Vilesov / Mbed 2 deprecated power_switch

Dependencies:   mbed BLE_API nRF51822

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ServicePower.cpp Source File

ServicePower.cpp

00001 #include "ServicePower.h"
00002 #define UUID_POWER(FIRST, SECOND) {\
00003 0xd4, 0x9f, FIRST, SECOND, 0xce,0xb2, 0x4c, 0x39, 0xa4, 0xea,\
00004 0x85, 0xfa, 0xfa, 0xae, 0x22, 0xbf\
00005 }
00006 
00007 const uint8_t Power_service_UUID[UUID::LENGTH_OF_LONG_UUID]    = UUID_POWER(0x20, 0x80);
00008 const uint8_t Power_value_char_UUID[UUID::LENGTH_OF_LONG_UUID] = UUID_POWER(0x20, 0x81);
00009 const uint8_t Power_state_char_UUID[UUID::LENGTH_OF_LONG_UUID] = UUID_POWER(0x20, 0x82);