appbase.py
Base class for serial data interpretation
class AppBase
This code provides a base class implementing common functions required for all TWELITE APPS. It includes operations such as opening and closing the serial port, reading serial data, and writing to log files.
The derived class apppal.py interprets the received byte sequence, stores the data in a dictionary object, and returns it to the main function.
GetDataDict()
Interprets the payload and returns a dictionary object containing the data.
Parameters
None
Return Value
Type | Description |
---|---|
Dict | Dictionary object containing the interpreted payload data |