ccollins476ad opened a new pull request #483: BLE Host - Automatic 
own-addr-type resolution
   This commit adds a new function to the NimBLE host API:
    * Determines the best address type to use for automatic address type
    * resolution.  Calculation of the best address type is done as follows:
    * if privacy requested:
    *     if we have a random static address:
    *          --> RPA with static random ID
    *     else
    *          --> RPA with public ID
    *     end
    * else
    *     if we have a random static address:
    *          --> random static address
    *     else
    *          --> public address
    *     end
    * end
    * @param privacy               (0/1) Whether to use a private address.
    * @param out_addr_type         On success, the "own addr type" code gets
    *                                  written here.
    * @return                      0 if an address type was successfully 
    *                              BLE_HS_ENOADDR if the device does not have a
    *                                  suitable address.
    *                              Other BLE host core code on error.
   ble_hs_id_infer_auto(int privacy, uint8_t *out_addr_type)
   The motivation for this change is to allow BLE packages to be more 
self-contained.  If a package doesn't care what type of address it uses, it can 
just use whatever is available.
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to