Struct Info

Source
pub struct Info {
Show 36 fields pub ver: Option<String>, pub vid: Option<u32>, pub leds: Option<Leds>, pub str: Option<bool>, pub name: Option<String>, pub udpport: Option<u16>, pub live: Option<bool>, pub liveseg: Option<i16>, pub lm: Option<String>, pub lip: Option<String>, pub ws: Option<i8>, pub fxcount: Option<u8>, pub palcount: Option<u16>, pub cpalcount: Option<u16>, pub maps: Option<Vec<Map>>, pub wifi: Option<Wifi>, pub fs: Option<Fs>, pub ndc: Option<i16>, pub tx_power: Option<u32>, pub sleep: Option<bool>, pub arch: Option<String>, pub core: Option<String>, pub reset_reason_0: Option<u32>, pub reset_reason_1: Option<u32>, pub reset_reason: Option<u32>, pub lwip: Option<u8>, pub freeheap: Option<u32>, pub psram: Option<u64>, pub uptime: Option<u32>, pub time: Option<String>, pub opt: Option<u16>, pub brand: Option<String>, pub product: Option<String>, pub btype: Option<String>, pub mac: Option<String>, pub ip: Option<String>,
}

Fields§

§ver: Option<String>

Version name.

§vid: Option<u32>

Build ID (YYMMDDB, B = daily build index).

§leds: Option<Leds>

Contains info about the LED setup.

§str: Option<bool>

sync Toggle Receive UIs which only have a single button for sync should toggle send+receive if this is true, only send otherwise

§name: Option<String>

Friendly name of the light. Intended for display in lists and titles. Name of module - default is WLED

§udpport: Option<u16>

The UDP port for realtime packets and WLED broadcast. WLED notifier default port

§live: Option<bool>

If true, the software is currently receiving realtime data via UDP or E1.31.

§liveseg: Option<i16>

main segment id if its active, -1 otherwise

§lm: Option<String>

Info about the realtime data source WLED SOURCE (as of ~wled 14.0: switch (realtimeMode) { case REALTIME_MODE_INACTIVE: root[“lm”] = “”; break; case REALTIME_MODE_GENERIC: root[“lm”] = “”; break; case REALTIME_MODE_UDP: root[“lm”] = F(“UDP”); break; case REALTIME_MODE_HYPERION: root[“lm”] = F(“Hyperion”); break; case REALTIME_MODE_E131: root[“lm”] = F(“E1.31”); break; case REALTIME_MODE_ADALIGHT: root[“lm”] = F(“USB Adalight/TPM2”); break; case REALTIME_MODE_ARTNET: root[“lm”] = F(“Art-Net”); break; case REALTIME_MODE_TPM2NET: root[“lm”] = F(“tpm2.net”); break; case REALTIME_MODE_DDP: root[“lm”] = F(“DDP”); break; }

§lip: Option<String>

Realtime data source IP address

§ws: Option<i8>

-1 to 8; Number of currently connected WebSockets clients. -1 indicates that WS is unsupported in this build.

§fxcount: Option<u8>

Number of effects included.

§palcount: Option<u16>

Number of palettes configured. will only return built-in palette count

§cpalcount: Option<u16>

custom palette count

§maps: Option<Vec<Map>>

available ledmaps

§wifi: Option<Wifi>

Info about wifi

§fs: Option<Fs>

Info about the embedded LittleFS filesystem (since 0.11.0)

§ndc: Option<i16>

-1 to 255; Number of other WLED devices discovered on the network. -1 if Node discovery disabled. (since 0.12.0)

§tx_power: Option<u32>

only present on debug builds (int) WiFi.getTxPower();

§sleep: Option<bool>

only present on debug builds (bool) WiFi.getSleep();

§arch: Option<String>

Name of the platform.

§core: Option<String>

Version of the underlying (Arduino core) SDK.

§reset_reason_0: Option<u32>

only present on debug esp32 builds (int)rtc_get_reset_reason(0);

§reset_reason_1: Option<u32>

only present on debug esp32 builds (int)rtc_get_reset_reason(1);

§reset_reason: Option<u32>

only present on debug esp8266 builds (int)rtc_get_reset_reason(0);

§lwip: Option<u8>

0-2; Version of LwIP. 1 or 2 on ESP8266, 0 (does not apply) on ESP32. Deprecated, removal in 0.14.0

§freeheap: Option<u32>

Bytes of heap memory (RAM) currently available. Problematic if <10k.

§psram: Option<u64>

ESP.getFreePsram(); only present when hardware supports psram

§uptime: Option<u32>

Time since the last boot/reset in seconds.

§time: Option<String>

The current time in human readable format

§opt: Option<u16>

Used for debugging purposes only. bit map of build info #ifdef WLED_DEBUG_HOST os |= 0x0100; if (!netDebugEnabled) os &= ~0x0080; #endif 0x80: debug enabled 0x40: disable alexa 0x20: Depreceated, used to be Blynk support, may be repurposed 0x10: usermod Chronixie 0x08: disable filesystem build tag 0x04: disable hue sync build tag 0x02: enable AdaLight build tag 0x01: disable OTA build tag

§brand: Option<String>

The producer/vendor of the light. Always WLED for standard installations.

§product: Option<String>

The product name. Always FOSS for standard installations.

§btype: Option<String>

The origin of the build. src if a release version is compiled from source, bin for an official release image, dev for a development build (regardless of src/bin origin) and exp for experimental versions. ogn if the image is flashed to hardware by the vendor. Removed as of v0.10

§mac: Option<String>

The hexadecimal hardware MAC address of the light, lowercase and without colons.

§ip: Option<String>

The IP address of this instance. Empty string if not connected. (since 0.13.0) format: sprintf(s, “%d.%d.%d.%d”, localIP[0], localIP[1], localIP[2], localIP[3]);

Trait Implementations§

Source§

impl Clone for Info

Source§

fn clone(&self) -> Info

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Info

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Info

Source§

fn default() -> Info

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Info

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Info

Source§

fn eq(&self, other: &Info) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Info

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<&str> for Info

Source§

type Error = WledJsonApiError

The type returned in the event of a conversion error.
Source§

fn try_from(str_in: &str) -> Result<Info, WledJsonApiError>

Performs the conversion.
Source§

impl StructuralPartialEq for Info

Auto Trait Implementations§

§

impl Freeze for Info

§

impl RefUnwindSafe for Info

§

impl Send for Info

§

impl Sync for Info

§

impl Unpin for Info

§

impl UnwindSafe for Info

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,