Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed BLE_API nRF51822
Diff: bleservices/ServicePower.cpp
- Revision:
- 3:38ec35b54db8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bleservices/ServicePower.cpp Thu Oct 22 19:52:59 2015 +0000
@@ -0,0 +1,9 @@
+#include "ServicePower.h"
+#define UUID_POWER(FIRST, SECOND) {\
+0xd4, 0x9f, FIRST, SECOND, 0xce,0xb2, 0x4c, 0x39, 0xa4, 0xea,\
+0x85, 0xfa, 0xfa, 0xae, 0x22, 0xbf\
+}
+
+const uint8_t Power_service_UUID[UUID::LENGTH_OF_LONG_UUID] = UUID_POWER(0x20, 0x80);
+const uint8_t Power_value_char_UUID[UUID::LENGTH_OF_LONG_UUID] = UUID_POWER(0x20, 0x81);
+const uint8_t Power_state_char_UUID[UUID::LENGTH_OF_LONG_UUID] = UUID_POWER(0x20, 0x82);