1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! # Embedded Device Configuration
//!
//! This crate provides comprehensive configuration structures for embedded devices,
//! specifically for Wi-Fi connectivity, Bluetooth device management, and device
//! identification in `no_std` environments.
//!
//! ## Features
//!
//! - **Wi-Fi Configuration**: Store and manage Wi-Fi network credentials with `WifiConfig`
//! - **Bluetooth Device Management**: Complete Bluetooth device lifecycle management:
//! - `BluetoothDeviceInfo`: Individual device information with pairing data
//! - `BluetoothDeviceList`: Manage multiple paired devices (up to 10)
//! - `BluetoothConnectionState`: Track connection status and link quality
//! - `BluetoothConnectionParams`: Low-level connection parameters
//! - `BluetoothSecurityInfo`: Security and authentication information
//! - **Device Identity**: Store device identification and authentication data with `DeviceInfo`
//! - **Memory Safe**: All structures use fixed-size buffers with length tracking
//! - **Serializable**: `#[repr(C)]` layout for easy persistence and IPC
//! - **Embedded Ready**: Full `no_std` compatibility with minimal dependencies
//!
//! ## Quick Start
//!
//! ```rust
//! use renik::{BluetoothDeviceInfo, BluetoothDeviceList, WifiConfig};
//!
//! // Wi-Fi configuration
//! let wifi = WifiConfig::new(b"MyNetwork", b"password123")?;
//!
//! // Bluetooth device management
//! let mac_addr = [0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC];
//! let device = BluetoothDeviceInfo::new(&mac_addr, b"My Speaker")?;
//!
//! let mut device_list = BluetoothDeviceList::default();
//! device_list.add_device(device)?;
//! # Ok::<(), renik::Error>(())
//! ```
//!
//! All structures are designed for persistent storage and can be safely serialized
//! to flash memory or other storage mediums for configuration persistence across
//! device reboots.
pub use ;
pub use DeviceInfo;
pub use Error;
pub use WifiConfig;