pub fn write_advertising_data(
counter: u8,
payload: &[u8],
out: &mut [u8],
) -> Result<usize, Error>Expand description
Writes the Remote ID AD structure (length, type, UUID, app code,
counter, payload) into out and returns its length.
For Bluetooth 4 legacy advertising, pass one 25 byte message; the result is 31 bytes, the whole legacy advertising payload. For Bluetooth 5 pass a message pack.