From aa9648218c04b29b0208fb63bdf76824bd2459b2 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Sun, 9 Mar 2025 10:34:02 +0100 Subject: [PATCH] uPython-specific code setup --- MicroPython/uPythonParticipant.py | 4 ++++ Participant.py | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 MicroPython/uPythonParticipant.py diff --git a/MicroPython/uPythonParticipant.py b/MicroPython/uPythonParticipant.py new file mode 100644 index 0000000..1a40df3 --- /dev/null +++ b/MicroPython/uPythonParticipant.py @@ -0,0 +1,4 @@ +class uPythonParticipant: + pass + + \ No newline at end of file diff --git a/Participant.py b/Participant.py index cadaa90..beadcab 100644 --- a/Participant.py +++ b/Participant.py @@ -9,6 +9,12 @@ from Messages.ModelUrlMsg import ModelUrlMsg from Messages import * from Thing import Thing +import sys +micropython = 'micropython' in sys.modules + +if micropython: + from MicroPython.uPythonParticipant import Bla + class Participant: """! A participant is used for communcation between things.