Add ble advertising driver to drivers object.
diff --git a/src/simple_ble.rs b/src/simple_ble.rs
index 113de2d..fb7c926 100644
--- a/src/simple_ble.rs
+++ b/src/simple_ble.rs
@@ -29,13 +29,16 @@
pub const SERVICE_DATA: usize = 0x16;
}
-pub struct BleAdvertisingDriver;
+pub struct BleAdvertisingDriver {
+ pub(crate) _unconstructible: (),
+}
impl BleAdvertisingDriver {
pub fn create_advertising_buffer() -> [u8; BUFFER_SIZE_ADVERTISE] {
[0; BUFFER_SIZE_ADVERTISE]
}
pub fn initialize<'a>(
+ &'a mut self,
interval: usize,
service_payload: &BlePayload,
advertising_buffer: &'a mut [u8; BUFFER_SIZE_ADVERTISE],