-
Notifications
You must be signed in to change notification settings - Fork 61
feat: Add a CLI for exercising the asyncio MQTT session #396
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
Conversation
Lash-L
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - nice and simple. I get that the mqtt messages will be improved in the future - so looks good for now.
|
This needs another review post merge |
|
I had to fix a lint error during merge, then got the commit style wrong so had to force push again. whoops. Please take a look again. |
Lash-L
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still looks great, thank you
Add a command line that can connect to the MQTT session and subscribe for messages. Right now it just prints a prefix of the bytes stream.
% roborock session Discovered devices: Roborock Downstairs, Roborock Upstairs INFO:roborock.mqtt.roborock_session:Starting MQTT session Starting MQTT session... MQTT session started. Listening for messages... Stopping MQTT session...