Skip to content

AppData File Storage


This Python sample app shows how to persist application data in ctrlX CORE.

Function Description

This app uses a web server to listen for events regarding loading and saving configuration data.

Running in the snap environment of a ctrlX CORE therefor a web socket connection is used. In the build environment a TCP/IP connection is used.

Implementation Description starts the web server in TCP or Unix socket mode.

The package web contains the web server implementation using the build in Python module http.server. For encoding and decoding JSON Web Tokens the Python library pyjwt is used.

The folder configs contains the file package-manifest.json. It is used to register the snap within the ctrlX CORE as participant of the configuration load/store mechanism.


SPDX-FileCopyrightText: Bosch Rexroth AG SPDX-License-Identifier: MIT