This repository was archived by the owner on May 18, 2022. It is now read-only.
Implement AccessAddress generation #16
Labels
area: link layer
Code Area: BLE Link Layer (establishing and maintaining connections, encryption, etc)
help wanted
Call for participation: Help is requested to fix this issue
status: needs code
An implementation or a bugfix need to be written
type: enhancement
A new feature or an improvement for an existing one
This is needed if the device wants to initiate a connection (by sending a connection request PDU), it is not needed if the device is just a peripheral that accepts a connection. It is specified in Part B 2.1.2 of Bluetooth Core v4.2.
Depends on #2.
Things that need to be done:
struct AccessAddress(u32);
newtypeu32
for access addresses with the new typeadvertising::ACCESS_ADDRESS
constant can be replaced by an associated constAccessAddress::ADVERTISING
Debug
by hand and print the hex representation of the addressis_valid
method that checks the requirements in the specification (also implement a lot of unit tests for this)random
constructor method that uses arand_core::RngCore
implementor to generate a randomAccessAddress
that adheres to the specified requirementsThe text was updated successfully, but these errors were encountered: