Make internals private (#4029)

* Make internals private

* CHANGELOG.md
This commit is contained in:
Björn Quentin 2025-09-02 17:57:36 +02:00 committed by GitHub
parent 01a01ba99e
commit a337554ea1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 28 additions and 22 deletions

View File

@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
- `scan_with_config_sync_max`, `scan_with_config_sync_max`, `scan_n`, and `scan_n_async` functions (#3963)
- `AtomicWifiState` and `WifiDeviceMode` are not available anymore (#4029)
## [v0.15.0] - 2025-07-16

View File

@ -1786,7 +1786,7 @@ mod private {
/// Wi-Fi device operational modes.
#[derive(Debug, Clone, Copy)]
pub enum WifiDeviceMode {
enum WifiDeviceMode {
/// Station mode.
Sta,
/// Access Point mode.

View File

@ -1,31 +1,36 @@
use core::sync::atomic::Ordering;
use portable_atomic_enum::atomic_enum;
use private::AtomicWifiState;
pub use private::WifiState;
use super::WifiEvent;
/// Wi-Fi interface state.
#[atomic_enum]
#[derive(PartialEq, Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[non_exhaustive]
pub enum WifiState {
/// Station started.
StaStarted,
/// Station connected.
StaConnected,
/// Station disconnected.
StaDisconnected,
/// Station stopped
StaStopped,
mod private {
use portable_atomic_enum::atomic_enum;
/// Access point started.
ApStarted,
/// Access point stopped.
ApStopped,
/// Wi-Fi interface state.
#[atomic_enum]
#[derive(PartialEq, Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[non_exhaustive]
pub enum WifiState {
/// Station started.
StaStarted,
/// Station connected.
StaConnected,
/// Station disconnected.
StaDisconnected,
/// Station stopped
StaStopped,
/// Invalid Wi-Fi state.
Invalid,
/// Access point started.
ApStarted,
/// Access point stopped.
ApStopped,
/// Invalid Wi-Fi state.
Invalid,
}
}
impl From<WifiEvent> for WifiState {