Mischback / krachkiste_esp32

An ESP32-based audio player
0 stars 0 forks source link

[``mnet32``] Publish Internal State #16

Open Mischback opened 2 years ago

Mischback commented 2 years ago

MOVED FROM #5

This was originally part of #5, but to actually determine which information is required by other modules of the whole project, these other components have to be - at least - stubbed out. To make clear that the basic functions of #5 are already in place, these things are moved into this issue.

Mischback commented 2 years ago

Component-specific Status Information

struct networking_public_status {
    networking_medium medium;    // directly from internal state
    networking_mode   mode;      // directly from internal state
    networking_status status;    // directly from internal state
    char              ssid[32];  // There is a constant for the maximum length!
                                 // Either the SSID of the WiFi network connected to or
                                 // the SSID of the access point
                                 // For convenience, this might be set to "WIRED" if
                                 // ``medium`` is ``ETHERNET``
    // ip mode                   // ``dhcp`` or `static``
    // ip address (IPv4)         // Either the assigned IP-address or the (automatic) IP
                                 // address in access point mode
    // ip address (IPv6)
    // netmask (IPv4 only)
    // default gw (IPv4)         // Is this relevant for IPv6?!
    // nameserver (IPv4)         // Is this relevant for IPv6? Yes, most likely another 
                                 // field is required
};