mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 12:20:56 +00:00
parent
01a01ba99e
commit
a337554ea1
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user