what-
This commit is contained in:
@@ -22,6 +22,6 @@ class LoraLightSensorReader(SerialReader):
|
|||||||
if match:
|
if match:
|
||||||
try:
|
try:
|
||||||
data = json.loads(match.group())
|
data = json.loads(match.group())
|
||||||
print("Received JSON:", data)
|
self.__notify(str(data))
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
print("Received invalid JSON:", match.group())
|
print("Received invalid JSON:", match.group())
|
||||||
Reference in New Issue
Block a user