class documentation

class tagWIFIDNS: (source)

Constructor: tagWIFIDNS.unpack(data)

View In Hierarchy

Represents a WiFi DNS server address configuration.

Class Method unpack Unpacks a bytes sequence into a tagWIFIDNS object.
Method pack Packs the tagWIFIDNS object into a bytes sequence.
Class Variable addr Undocumented
def unpack(cls, data: bytes) -> tagWIFIDNS: (source)

Unpacks a bytes sequence into a tagWIFIDNS object.

Parameters
data:bytesThe bytes to unpack, expected to be 4 bytes (4 uint8s).
Returns
tagWIFIDNSA tagWIFIDNS object.
Raises
struct.errorIf the input bytes are not the expected size (4 bytes).
def pack(self) -> bytes: (source)

Packs the tagWIFIDNS object into a bytes sequence.

Packs the DNS server address bytes (4 uint8s) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (4 bytes).
Raises
ValueErrorIf the addr list does not contain exactly 4 elements.

Undocumented