class documentation
Represents a WiFi IP address configuration.
| Class Method | unpack |
Unpacks a bytes sequence into a tagWIFIIPAddress object. |
| Method | pack |
Packs the tagWIFIIPAddress object into a bytes sequence. |
| Class Variable | addr |
Undocumented |
| Class Variable | dhcp |
Undocumented |
Unpacks a bytes sequence into a tagWIFIIPAddress object.
| Parameters | |
data:bytes | The bytes to unpack, expected to be 5 bytes (1 uint8 + 4 uint8s). |
| Returns | |
tagWIFIIPAddress | A tagWIFIIPAddress object. |
| Raises | |
struct.error | If the input bytes are not the expected size (5 bytes). |
Packs the tagWIFIIPAddress object into a bytes sequence.
Packs the dhcp boolean (as uint8) and the IP address bytes (4 uint8s) into a byte string. Uses little-endian byte order.
| Returns | |
bytes | A bytes object representing the packed data (1 + 4 = 5 bytes). |
| Raises | |
ValueError | If the addr list does not contain exactly 4 elements. |