Skip to content

UpdateLastConnected / How to know alive devices #71

Answered by cloudxxx8
mglmc asked this question in Q&A
Discussion options

You must be logged in to vote

In the original implementation, UpdateLastConnected happens for every event sending out, and it is quite a waste to send the REST to update it. In fact, you can subscribe the event metrics to confirm the last Device Service working timestamp.
https://docs.edgexfoundry.org/2.3/microservices/general/#service-metrics
v2.3 config:
https://github.com/edgexfoundry/device-modbus-go/blob/251be81c94d6bf2c69d06494166ea5d98cfe24ab/cmd/res/configuration.toml#L19
v3.0 config:
https://github.com/edgexfoundry/edgex-go/blob/6dde6725c068b93be8e99b4859b2725888de99b7/cmd/core-common-config-bootstrapper/res/configuration.yaml#L109

For the real Device disconnection alerts, it depends on the individual Device …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mglmc
Comment options

Answer selected by mglmc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants