Skip to content
Snippets Groups Projects
Commit 2293c62a authored by schneider's avatar schneider
Browse files

feat(ble): Make the adv a bit more Apple friendly

Accessory Design Guidelines for Apple Devices says that TX power should
be included in the advertisement.

Also ask for the current time service in the scan report so the card10
shows up in the system dialog.
parent 0575f19f
No related branches found
No related tags found
1 merge request!406Read date/time from iOS device
Pipeline #4742 passed
......@@ -178,7 +178,11 @@ static const uint8_t bleAdvDataDisc[] =
/*! service UUID list */
17,
DM_ADV_TYPE_128_UUID_PART,
CARD10_UUID_SUFFIX, 0x0, CARD10_UUID_PREFIX
CARD10_UUID_SUFFIX, 0x0, CARD10_UUID_PREFIX,
2, /*! length */
DM_ADV_TYPE_TX_POWER, /*! AD type */
0, /*! tx power */
};
/*! scan data, discoverable mode */
......@@ -187,7 +191,11 @@ uint8_t bleScanDataDisc[] =
/*! device name */
14, /*! length */
DM_ADV_TYPE_LOCAL_NAME, /*! AD type */
'c','a','r','d','1','0','-','0','0','0','0','0','0'
'c','a','r','d','1','0','-','0','0','0','0','0','0',
3, /*! length */
DM_ADV_TYPE_16_SOLICIT, /*! AD type */
UINT16_TO_BYTES(ATT_UUID_CURRENT_TIME_SERVICE),
};
/*! advertising data, connectable mode */
......
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