class documentation

class tagWIFIGateway: (source)

Constructor: tagWIFIGateway.unpack(data)

View In Hierarchy

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
def unpack(cls, data: bytes) -> tagWIFIGateway: (source)

Unpacks a bytes sequence into a tagWIFIGateway object.

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

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
bytesA bytes object representing the packed data (4 bytes).
Raises
ValueErrorIf the addr list does not contain exactly 4 elements.

Undocumented