esp-nimble-cpp icon indicating copy to clipboard operation
esp-nimble-cpp copied to clipboard

Refactor NimBLEAddress - use NimBLE core representation.

Open h2zero opened this issue 1 year ago • 0 comments

This simplifies the NimBLEAddress code by directly using the NimBLE core ble_addr_t type to hold the address and allows using NimBLE core functions and macros to replace code in some methods.

  • Adds getBase method to access the base NimBLE address struct.
  • Adds isNrpa method to test if an address is random non-resolvable.
  • Adds isStatic method to test if an address is random static.
  • Adds isPublic method to test if an address is a public address.
  • Adds isNull methods to test if an address is NULL.
  • equals method and == operator will now also test if the address types are the same.
  • Code cleanup

h2zero avatar Jul 05 '24 20:07 h2zero