pub struct Wifi {
pub bssid: Option<String>,
pub rssi: Option<i64>,
pub signal: Option<u8>,
pub channel: Option<i32>,
}
Fields§
§bssid: Option<String>
Return the current bssid / mac associated with the network if configured
rssi: Option<i64>
undocumented??? heres the WLED source as of WLED ~14.0: int qrssi = WiFi.RSSI(); <- thats an i8 wifi_info[F(“rssi”)] = qrssi; <- but thats a u32 wifi_info[F(“signal”)] = getSignalQuality(qrssi); I’m going to make RSSI an i64 to include both in case this gets fixed in the future. blame me for 4 bytes
signal: Option<u8>
0-100; Relative signal quality of the current connection. use this over RSSI unless for some reason you feel cooler doing the conversion in your head
channel: Option<i32>
1 to 14; The current WiFi channel. WLED source uses i32 so i will too
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Wifi
impl<'de> Deserialize<'de> for Wifi
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Wifi
Auto Trait Implementations§
impl Freeze for Wifi
impl RefUnwindSafe for Wifi
impl Send for Wifi
impl Sync for Wifi
impl Unpin for Wifi
impl UnwindSafe for Wifi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more