remote_id/lib.rs
1#![no_std]
2
3pub mod codec;
4pub mod data;
5
6const MAX_ID_BYTE_SIZE: usize = 20;
7
8// https://github.com/opendroneid/receiver-android/blob/a6359b6ee7c2b06c035137c8348cf979705624c3/Android/app/src/main/java/org/opendroneid/android/bluetooth/BluetoothScanner.java#L121
9const OPEN_DRONE_ID_AD_CODE: u8 = 0x0D;
10
11/// Remote ID Service Data Advertisement UUID
12// The UUID is combined from the
13// - Service Data Object (SDO) UUID for Remote ID: "fffa"
14// (source: https://www.bluetooth.com/specifications/assigned-numbers/, Section 3.10 in the PDF)
15//
16// - a base Bluetooth LE UUID: 0000____-0000-1000-8000-00805f9b34fb
17pub const REMOTE_ID_SERVICE_UUID: u128 = 0x0000fffa_0000_1000_8000_00805f9b34fb;