Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BREAKING] Refactor NimBLEAddress - use NimBLE core representation. #699

Merged
merged 1 commit into from
Jul 18, 2024

Commits on Jul 18, 2024

  1. [BREAKING] Refactor NimBLEAddress - use NimBLE core representation.

    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.
    
    * `getNative()` replaced with `getBase()` and now returns a pointer to `const ble_addr_t` instead of a pointer to the address value.
    * 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.
    * Adds `getValue()` method which returns a read-only pointer to the address value.
    * Adds `reverseByteOrder()` method which will reverse the byte order of the address value.
    * `equals()` method and == operator will now also test if the address types are the same.
    * Code cleanup.
    h2zero committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    f0b7b4c View commit details
    Browse the repository at this point in the history