-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[nuvo] Fix MPS4 flag and online status reporting #13345
Conversation
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
closeConnection(); | ||
} else { | ||
updateStatus(ThingStatus.ONLINE, ThingStatusDetail.NONE, this.versionString); |
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.
You want now to set the thing status ONLINE only when something is received through the connection ?
In practice, will a message be received systematically quickly after the connection ?
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.
Yes, for serial port connections, pollStatus() will cause messages to be received almost immediately. For MPS4, a ping message will arrive within a few seconds.
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.
Ok
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.
LGTM
* Fix mps4 flag and online status reporting * Update missing statuses Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* Fix mps4 flag and online status reporting * Update missing statuses Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* Fix mps4 flag and online status reporting * Update missing statuses Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* Fix mps4 flag and online status reporting * Update missing statuses Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* Fix mps4 flag and online status reporting * Update missing statuses Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* Fix mps4 flag and online status reporting * Update missing statuses Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
Fix two minor issues: