Nxtv2
Nxtv2
> There is no C++ API for this yet (soon). but you can use the lower level calls: > > ``` > NimBLEAddress newAddress("AA:BB:CC:DD:EE:FF"); > int rc = ble_hs_id_set_rnd(newAddress.getNative()); >...
I called stopadvertising before it, and then started advertising after it.
Simple example where the issue pops up ```c++ /** NimBLE_Service_Data_Advertiser Demo: * * Simple demo of advertising service data that changes every 5 seconds * * Created: on February 7...
The OpenHaystack project allows you to build DIY Apple Airtags, the protocol they use mandates changing the BLE address to send data (hacky solution from apple to get around the...
Hi, thanks for helping :smile:. If i may ask, what is a real random address? And what difference does it have to the current address type? With the AirTag protocol,...
I have to add, i am using a single core ESP32, compiled the ESP-IDF libraries myself for it to work, maybe this is the reason? Everything else seems to work...
I confirmed in this code snippet form openhaystack firmware ```c void set_addr_from_key(esp_bd_addr_t addr, uint8_t *public_key) { addr[0] = public_key[0] | 0b11000000; addr[1] = public_key[1]; addr[2] = public_key[2]; addr[3] = public_key[3];...
I tried the following code ```c++ /** NimBLE_Service_Data_Advertiser Demo: * * Simple demo of advertising service data that changes every 5 seconds * * Created: on February 7 2021 *...
The delay on its own didn't work. However using `NimBLEDevice::setOwnAddrType(BLE_OWN_ADDR_RANDOM)` finally made it work! Thanks for the amazing insight. The following code works ```c++ /** NimBLE_Service_Data_Advertiser Demo: * * Simple...