You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend subscriber.py to validate every incoming message before accepting it. Validation must check that the message is valid JSON, that all required fields are present (room, sensor_type, value, unit, timestamp), and that the value field is a number. Any message that fails validation must be rejected and logged with a clear error message explaining which field failed. Valid messages should be passed to the database insert function once Timi's database.py is ready. Commit with message [SUBSCRIBER] Add message validation logic and reference this issue.
The text was updated successfully, but these errors were encountered:
Extend subscriber.py to validate every incoming message before accepting it. Validation must check that the message is valid JSON, that all required fields are present (room, sensor_type, value, unit, timestamp), and that the value field is a number. Any message that fails validation must be rejected and logged with a clear error message explaining which field failed. Valid messages should be passed to the database insert function once Timi's database.py is ready. Commit with message [SUBSCRIBER] Add message validation logic and reference this issue.
The text was updated successfully, but these errors were encountered: