From 0ec2abb46e6795275e7baaedb680666f2a770caf Mon Sep 17 00:00:00 2001
From: CiscoTheWolf <cisco@hostingwire.net>
Date: Wed, 31 May 2023 18:37:08 +0200
Subject: [PATCH] print the pin number and state of received mqtt message to
 terminal.

---
 rpi/antRender.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rpi/antRender.py b/rpi/antRender.py
index 6886a04..0b22f16 100644
--- a/rpi/antRender.py
+++ b/rpi/antRender.py
@@ -136,6 +136,9 @@ def on_connect(client, userdata, flags, response_code):
 def on_message(client, userdata, message):
     print("Received message '" + str(message.payload) + "' on topic '"
           + message.topic + "' with QoS " + str(message.qos))
+    pin_number = str(message.payload)[12:13]
+    pin_state = str(message.payload)[6:9]
+    print("pin number: " + pin_number+ " pin state: " + pin_state)
     proot_state = ProotState()
     proot_state.blink()
 
@@ -158,5 +161,3 @@ while True:
     pass
     
 
-# TODO create a splash screen to display super quick before the rest of the assets are loading
-