AccelerationConsortium / ac-training-lab

Codebase for controlling and managing the Acceleration Consortium (AC) Training Lab.
https://ac-training-lab.readthedocs.io/
MIT License
8 stars 2 forks source link

Implement status topics on the devices #35

Open sgbaird opened 1 month ago

sgbaird commented 1 month ago

Sparkplug B is a related topic:

sgbaird commented 1 month ago

Aside: Watchdog timer may help with reliability

https://github.com/AccelerationConsortium/ac-training-lab/issues/40#issuecomment-2365047988

sgbaird commented 1 week ago

Last will and testament (MQTT concept) is also a related topic.

@SissiFeng thoughts on whether Sparkplug would be suitable for this kind of status tracking ("is device A still connected to the broker")?

sgbaird commented 1 week ago

https://stackoverflow.com/a/49549288/13697228

Looks like retained message + LWT combo is a compelling pattern.

sgbaird commented 1 week ago

Heavily leaning towards this as a first implementation: https://www.hivemq.com/blog/managing-iot-device-state-within-mqtt/ (at least from a MWE standpoint).

SissiFeng commented 1 week ago

Agreed, especially for MWE, this approach is more concise and effective.

Let me update those HF Space, with LWT configuration + streamlit Interface Integration.