Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't crash when receiving JSON message without id #223

Merged

Conversation

koenvervloesem
Copy link
Member

@koenvervloesem koenvervloesem commented Jan 16, 2024

Description:

Currently Theengs Gateway crashes when receiving a JSON message on its MQTT subscribe topic without an id. This PR fixes this and logs a warning with the JSON message.

See https://community.openmqttgateway.com/t/problem-with-switchbot-3-curtain/3026/10

Checklist:

  • I have created the pull request against the latest development branch
  • I have added only one feature/fix per PR and the code change compiles without warnings
  • I accept the Developer Certificate of Origin (DCO).

@koenvervloesem koenvervloesem merged commit 116f78b into development Jan 16, 2024
7 checks passed
@koenvervloesem koenvervloesem deleted the dont_crash_without_id_in_subscribed_message branch January 16, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant