diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fe36ee4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,212 @@
+# Created by .ignore support plugin (hsz.mobi)
+### Python template
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+pip-wheel-metadata/
+share/python-wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+# Usually these files are written by a python script from a template
+# before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.nox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+*.py,cover
+.hypothesis/
+.pytest_cache/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+db.sqlite3-journal
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# IPython
+profile_default/
+ipython_config.py
+
+# pyenv
+.python-version
+
+# pipenv
+# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
+# However, in case of collaboration, if having platform-specific dependencies or dependencies
+# having no cross-platform support, pipenv may install dependencies that don't work, or not
+# install all needed dependencies.
+#Pipfile.lock
+
+# PEP 582; used by e.g. github.com/David-OConnor/pyflow
+__pypackages__/
+
+# Celery stuff
+celerybeat-schedule
+celerybeat.pid
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+.dmypy.json
+dmypy.json
+
+# Pyre type checker
+.pyre/
+
+### JetBrains template
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
+
+# User-specific stuff
+.idea/**/workspace.xml
+.idea/**/tasks.xml
+.idea/**/usage.statistics.xml
+.idea/**/dictionaries
+.idea/**/shelf
+
+# Generated files
+.idea/**/contentModel.xml
+
+# Sensitive or high-churn files
+.idea/**/dataSources/
+.idea/**/dataSources.ids
+.idea/**/dataSources.local.xml
+.idea/**/sqlDataSources.xml
+.idea/**/dynamic.xml
+.idea/**/uiDesigner.xml
+.idea/**/dbnavigator.xml
+
+# Gradle
+.idea/**/gradle.xml
+.idea/**/libraries
+
+# Gradle and Maven with auto-import
+# When using Gradle or Maven with auto-import, you should exclude module files,
+# since they will be recreated, and may cause churn. Uncomment if using
+# auto-import.
+# .idea/artifacts
+# .idea/compiler.xml
+# .idea/modules.xml
+# .idea/*.iml
+# .idea/modules
+# *.iml
+# *.ipr
+
+# CMake
+cmake-build-*/
+
+# Mongo Explorer plugin
+.idea/**/mongoSettings.xml
+
+# File-based project format
+*.iws
+
+# IntelliJ
+out/
+
+# mpeltonen/sbt-idea plugin
+.idea_modules/
+
+# JIRA plugin
+atlassian-ide-plugin.xml
+
+# Cursive Clojure plugin
+.idea/replstate.xml
+
+# Crashlytics plugin (for Android Studio and IntelliJ)
+com_crashlytics_export_strings.xml
+crashlytics.properties
+crashlytics-build.properties
+fabric.properties
+
+# Editor-based Rest Client
+.idea/httpRequests
+
+# Android studio 3.1+ serialized cache file
+.idea/caches/build_file_checksums.ser
+Würde .idea/$CACHE_FILE$ löschen
+Würde .idea/.gitignore löschen
+Würde .idea/codeStyles/ löschen
+Würde .idea/inspectionProfiles/ löschen
+Würde .idea/misc.xml löschen
+Würde .idea/modules.xml löschen
+Würde .idea/upy-nodes.iml löschen
+Würde .idea/vcs.xml löschen
+!/.idea/
diff --git a/.gitmodules b/.gitmodules
index a094d50..cc51ac6 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -7,3 +7,7 @@
[submodule "pysmartnode/libraries"]
path = pysmartnode/libraries
url = https://github.com/kevinkk525/micropython-device-libraries
+[submodule "tools/esp32/docker_build/dockercontainer-mpy-esp32-cc"]
+ path = tools/esp32/docker_build/dockercontainer-mpy-esp32-cc
+ url = https://github.com/tsitle/dockercontainer-mpy-esp32-cc.git
+
diff --git a/.idea/$CACHE_FILE$ b/.idea/$CACHE_FILE$
new file mode 100644
index 0000000..9237d74
--- /dev/null
+++ b/.idea/$CACHE_FILE$
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+ Python
+
+
+
+
+ PyCompatibilityInspection
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..5c98b42
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,2 @@
+# Default ignored files
+/workspace.xml
\ No newline at end of file
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..3cdc6ae
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..28a804d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..8449a59
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/upy-nodes.iml b/.idea/upy-nodes.iml
new file mode 100644
index 0000000..6d03f3f
--- /dev/null
+++ b/.idea/upy-nodes.iml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..4f4ffe3
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/external_modules/micropython_mqtt_as b/external_modules/micropython_mqtt_as
index 9f46ea5..2145972 160000
--- a/external_modules/micropython_mqtt_as
+++ b/external_modules/micropython_mqtt_as
@@ -1 +1 @@
-Subproject commit 9f46ea5e16131f536c9c186bee3743bd6dc8ac70
+Subproject commit 21459720051ed33da1358dad9ddfec1a43fa2482
diff --git a/tools/esp32/docker_build/dockercontainer-mpy-esp32-cc b/tools/esp32/docker_build/dockercontainer-mpy-esp32-cc
new file mode 160000
index 0000000..c0a2a68
--- /dev/null
+++ b/tools/esp32/docker_build/dockercontainer-mpy-esp32-cc
@@ -0,0 +1 @@
+Subproject commit c0a2a68bea34aaabbafc37e89bbde0bff3bf7e24
diff --git a/tools/esp32/docker_build/esp32_build_image.sh b/tools/esp32/docker_build/esp32_build_image.sh
new file mode 100755
index 0000000..6bb8f4d
--- /dev/null
+++ b/tools/esp32/docker_build/esp32_build_image.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+#./dockercontainer-mpy-esp32-cc/build_mpy.sh 1.12 mk def
+esptool.py --port /dev/ttyUSB0 erase_flash
+esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 dockercontainer-mpy-esp32-cc/mpy-firmware-1.12-def.bin # Todo: Flashmode -fm dio/qio is possible, --baud 115200 is possible
\ No newline at end of file
diff --git a/tools/esp32/docker_build/esp32_build_image_files.sh b/tools/esp32/docker_build/esp32_build_image_files.sh
new file mode 100755
index 0000000..f73af1e
--- /dev/null
+++ b/tools/esp32/docker_build/esp32_build_image_files.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+./dockercontainer-mpy-esp32-cc/build_mpy.sh 1.12 clean def
+./dockercontainer-mpy-esp32-cc/build_mpy.sh 1.12 clean spiram
+./esp32_sync.sh
+./esp32_remove_hints.sh
+echo "ready for write image"
\ No newline at end of file
diff --git a/tools/esp32/docker_build/esp32_copy_files.sh b/tools/esp32/docker_build/esp32_copy_files.sh
new file mode 100644
index 0000000..c3ddff6
--- /dev/null
+++ b/tools/esp32/docker_build/esp32_copy_files.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+cd /home/tholo/PycharmProjects/upy-nodes
+ampy -p /dev/ttyUSB0 put main.py
+ampy -p /dev/ttyUSB0 put config.py
+ampy -p /dev/ttyUSB0 put boot.py
+echo "files are ready"
\ No newline at end of file
diff --git a/tools/esp32/docker_build/esp32_remove_hints.sh b/tools/esp32/docker_build/esp32_remove_hints.sh
new file mode 100755
index 0000000..290f7e8
--- /dev/null
+++ b/tools/esp32/docker_build/esp32_remove_hints.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+#pip3 install strip-hints
+cd ~/PycharmProjects/upy-nodes/tools/esp32/dockercontainer-mpy-esp32-cc/mods # Todo: change Dirpath
+function foo {
+ echo $1
+ local res=$(/home/tholo/.local/bin/strip-hints --only-assigns-and-defs --only-test-for-changes $1)
+ if [[ $res = "True" ]]; then
+ echo "$1 stripped of hints"
+ v=$(/home/tholo/.local/bin/strip-hints --only-assigns-and-defs $1)
+ echo "$v" > $1
+ #else
+ # echo $1 $res
+ fi
+ }
+export -f foo
+find . -name \*.py -exec bash -c 'foo "$@"' bash {} \;
+cd ~/PycharmProjects/upy-nodes/tools/esp32/dockercontainer-mpy-esp32-cc/1.12/def/mpscripts
+find . -name \*.py -exec bash -c 'foo "$@"' bash {} \;
+cd ~/PycharmProjects/upy-nodes/tools/esp32/dockercontainer-mpy-esp32-cc/1.12/spiram/mpscripts
+find . -name \*.py -exec bash -c 'foo "$@"' bash {} \;
\ No newline at end of file
diff --git a/tools/esp32/docker_build/esp32_sync.sh b/tools/esp32/docker_build/esp32_sync.sh
new file mode 100755
index 0000000..94f6d7d
--- /dev/null
+++ b/tools/esp32/docker_build/esp32_sync.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+echo "Cur dir: $(pwd)"
+
+# shellcheck disable=SC2164
+cd ~/PycharmProjects/upy-nodes/tools/esp32/docker_build/dockercontainer-mpy-esp32-cc/mods # Todo: change Dirpath
+
+
+rsync -av --prune-empty-dirs --include "*/" --include "*.py" --exclude "*" --exclude "*.*" "/home/tholo/PycharmProjects/upy-nodes/pysmartnode/" ./pysmartnode/ --delete
+rsync -av --prune-empty-dirs --include "*/" --include "*.py" --exclude "*" --exclude "*.*" "/home/tholo/PycharmProjects/upy-nodes/_testing/" ./_testing/ --delete
+rsync -av --prune-empty-dirs --include "*/" --include "*.py" --exclude "*" --exclude "*.*" "/home/tholo/PycharmProjects/upy-nodes/external_modules/" ./
+
+cd ~/PycharmProjects/upy-nodes/tools/esp32/docker_build/dockercontainer-mpy-esp32-cc/1.12/def/mpscripts
+rsync -av "/home/tholo/PycharmProjects/upy-nodes/config.py" ./
+rsync -av "/home/tholo/PycharmProjects/upy-nodes/main.py" ./
+rsync -av "/home/tholo/PycharmProjects/upy-nodes/boot.py" ./
+