This is the multi-page printable view of this section. Click here to print...

Return to the regular view of this page

As of 2025-07-24

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

    TypeDescription
    DictDictionary object containing the interpreted payload data