Fix string identifier format

This commit is contained in:
2025-12-27 15:17:03 +01:00
parent a6c5a2cd54
commit 0ec10f765d
3 changed files with 4 additions and 59 deletions

View File

@@ -21,7 +21,7 @@ class LoraLightSensorReader(SerialReader):
match = self.json_pattern.search(line)
if match:
try:
data = json.loads(match.group())
data = match.group()
self._notify(str(data))
except json.JSONDecodeError:
print("Received invalid JSON:", match.group())
print("Received invalid JSON:", match.group())