Skip to content
Snippets Groups Projects
Commit dba22702 authored by genofire's avatar genofire Committed by schneider
Browse files

ble: fix card10 svc uuid

parent bf7824f7
No related branches found
No related tags found
1 merge request!105ble: improve current state of card10 svc
Pipeline #2031 passed
...@@ -13,21 +13,21 @@ The current draft uses following service specification: ...@@ -13,21 +13,21 @@ The current draft uses following service specification:
- Service - Service
UUID: ``0000f000-2342-2342-2342-234223422342`` UUID: ``42230200-2342-2342-2342-234223422342``
- light sensor characteristic: - light sensor characteristic:
UUID: ``0000f0f0-2342-2342-2342-234223422342`` UUID: ``422302f0-2342-2342-2342-234223422342``
read read
- Vibra characteristic: - Vibra characteristic:
UUID: ``0000f10f-2342-2342-2342-234223422342`` UUID: ``4223020f-2342-2342-2342-234223422342``
write write
- Rockets characteristic: - Rockets characteristic:
UUID: ``0000f110-2342-2342-2342-234223422342`` UUID: ``42230210-2342-2342-2342-234223422342``
write write
light sensor characteristic light sensor characteristic
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#define CARD10_UUID_SUFFIX \ #define CARD10_UUID_SUFFIX \
0x42, 0x23, 0x42, 0x23, 0x42, 0x23, 0x42, 0x23, 0x42, 0x23, 0x42, 0x23 0x42, 0x23, 0x42, 0x23, 0x42, 0x23, 0x42, 0x23, 0x42, 0x23, 0x42, 0x23
#define CARD10_UUID_PREFIX 0x02, 0x23, 0x42
/*!< \brief Service start handle. */ /*!< \brief Service start handle. */
#define CARD10_START_HDL 0x920 #define CARD10_START_HDL 0x920
...@@ -53,38 +54,38 @@ enum { ...@@ -53,38 +54,38 @@ enum {
/* clang-format off */ /* clang-format off */
/* BLE UUID for card10 service*/ /* BLE UUID for card10 service*/
static const uint8_t UUID_svc[] = { CARD10_UUID_SUFFIX, 0x0, 0xf0, 0x0, 0x0 }; static const uint8_t UUID_svc[] = { CARD10_UUID_SUFFIX, 0x0, CARD10_UUID_PREFIX };
/* BLE UUID for card10 char vibra */ /* BLE UUID for card10 char vibra */
static const uint8_t UUID_char_vibra[] = { static const uint8_t UUID_char_vibra[] = {
ATT_PROP_WRITE_NO_RSP, ATT_PROP_WRITE_NO_RSP,
UINT16_TO_BYTES(CARD10_VIBRA_VAL_HDL), UINT16_TO_BYTES(CARD10_VIBRA_VAL_HDL),
CARD10_UUID_SUFFIX, 0xf, 0xf1, 0x0, 0x0 CARD10_UUID_SUFFIX, 0xf, CARD10_UUID_PREFIX
}; };
static const uint8_t UUID_attChar_vibra[] = { static const uint8_t UUID_attChar_vibra[] = {
CARD10_UUID_SUFFIX, 0xf, 0xf1, 0x0, 0x0 CARD10_UUID_SUFFIX, 0xf, CARD10_UUID_PREFIX
}; };
/* BLE UUID for card10 char rockets */ /* BLE UUID for card10 char rockets */
static const uint8_t UUID_char_rockets[] = { static const uint8_t UUID_char_rockets[] = {
ATT_PROP_WRITE_NO_RSP, ATT_PROP_WRITE_NO_RSP,
UINT16_TO_BYTES(CARD10_ROCKETS_VAL_HDL), UINT16_TO_BYTES(CARD10_ROCKETS_VAL_HDL),
CARD10_UUID_SUFFIX, 0x10, 0xf1, 0x0, 0x0 CARD10_UUID_SUFFIX, 0x10, CARD10_UUID_PREFIX
}; };
static const uint8_t UUID_attChar_rockets[] = { static const uint8_t UUID_attChar_rockets[] = {
CARD10_UUID_SUFFIX, 0x10, 0xf1, 0x0, 0x0 CARD10_UUID_SUFFIX, 0x10, CARD10_UUID_PREFIX
}; };
/* BLE UUID for card10 char light sensor */ /* BLE UUID for card10 char light sensor */
static const uint8_t UUID_char_light_sensor[] = { static const uint8_t UUID_char_light_sensor[] = {
ATT_PROP_READ, ATT_PROP_READ,
UINT16_TO_BYTES(CARD10_LIGHT_SENSOR_VAL_HDL), UINT16_TO_BYTES(CARD10_LIGHT_SENSOR_VAL_HDL),
CARD10_UUID_SUFFIX, 0xf0, 0xf0, 0x0, 0x0 CARD10_UUID_SUFFIX, 0xf0, CARD10_UUID_PREFIX
}; };
static const uint8_t UUID_attChar_light_sensor[] = { static const uint8_t UUID_attChar_light_sensor[] = {
CARD10_UUID_SUFFIX, 0xf0, 0xf0, 0x0, 0x0 CARD10_UUID_SUFFIX, 0xf0, CARD10_UUID_PREFIX
}; };
/* clang-format on */ /* clang-format on */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment