Skip to content

Use case: synchronization of an asynchronous master system communicating with a network of VSCP nodes #276

Answered by grodansparadis
michpro asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, as you write persistent messages/event over MQTT can be used as MQTT is one possible transport. But the problem is the same there to if the broker go down. State changes while it is down does not benefit from persistent messages.

Best IMHO is to read the current state from the (known) modules at startup on a node that need to know the last state of a node. Normally this is just a standard register read, and it is almost equally fast as reading some local stored values.

Another method is to send (CLASS1-CONTROL, VSCP_TYPE_CONTROL_SYNC)[https://grodansparadis.github.io/vscp-doc-spec/#/./class1.control?id=type26] (or some other event of choice) to all nodes on start up and have them repo…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by michpro
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