Fix string identifier format
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user