> For the complete documentation index, see [llms.txt](https://palscript.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://palscript.twelite.info/master/source-files/mnlib/appbase.py.md).

# appbase.py

### `class AppBase`

本コードでは、すべてのTWELITE APPS 共通で必要な機能が実装されており、シリアルデータの読み込みに必要なシリアルポートの開閉処理やシリアルデータの読み込み、ログファイルの出力などの処理が記述された基底クラスです。\
これを継承した [apppal.py](/master/source-files/mnlib/apppal.py.md) が得られたバイト列を解釈し、辞書オブジェクトにデータを入れてメイン関数に返します。

#### `GetDataDict()`

ペイロードの解釈し、データを格納した辞書オブジェクトを返します。

#### パラメータ

なし

#### 戻り値

| 型    | 内容                         |
| ---- | -------------------------- |
| Dict | ペイロードを解釈したデータを格納した辞書オブジェクト |
