class documentation
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 |
Unpacks a bytes sequence into a tagWIFIDNS object.
Parameters | |
data:bytes | The bytes to unpack, expected to be 4 bytes (4 uint8s). |
Returns | |
tagWIFIDNS | A tagWIFIDNS object. |
Raises | |
struct.error | If the input bytes are not the expected size (4 bytes). |
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 | |
bytes | A bytes object representing the packed data (4 bytes). |
Raises | |
ValueError | If the addr list does not contain exactly 4 elements. |