fastiot.core.serialization module¶
- fastiot.core.serialization.serialize_to_bin(msg_cls, msg)[source]¶
Serializes a msg to binary. It also applies some basic type checks.
- Return type:
bytes
- fastiot.core.serialization.serialize_from_bin(msg_cls, data)[source]¶
Serializes a msg from binary.
- Return type:
Union
[FastIoTData
,dict
]