Gap.setAddr()/getAddr() are replaced by Bluefruit's setAddr()/getAddr()
This commit is contained in:
6 files changed
+36
-41
No files matched your search
@@ -107,7 +107,7 @@ bool BLEHomekit::setAdv(BLEAdvertisingData& adv_ref)
|
||||
.compatible_version = 2 // protocol version
|
||||
};
|
||||
|
||||
Bluefruit.Gap.getAddr(data.dev_id);
|
||||
Bluefruit.getAddr(data.dev_id);
|
||||
|
||||
VERIFY_STATIC( sizeof(data) == 17);
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ err_t HAPPairing::begin(void)
|
||||
|
||||
// Make PairID based on MAC address
|
||||
uint8_t mac[6];
|
||||
Bluefruit.Gap.getAddr(mac);
|
||||
Bluefruit.getAddr(mac);
|
||||
setDeviceID(mac);
|
||||
|
||||
// Init cryptography
|
||||
|
||||
Reference in new issue
Block a user