class documentation
Represents a WiFi gateway address configuration.
| Class Method | unpack |
Unpacks a bytes sequence into a tagWIFIGateway object. |
| Method | pack |
Packs the tagWIFIGateway object into a bytes sequence. |
| Class Variable | addr |
Undocumented |
Unpacks a bytes sequence into a tagWIFIGateway object.
| Parameters | |
data:bytes | The bytes to unpack, expected to be 4 bytes (4 uint8s). |
| Returns | |
tagWIFIGateway | A tagWIFIGateway object. |
| Raises | |
struct.error | If the input bytes are not the expected size (4 bytes). |
Packs the tagWIFIGateway object into a bytes sequence.
Packs the gateway 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. |