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]);