P -
?
I do exactly what you suggest. ?My turnouts are named to include the id of the microcontroller that is controlling them (in my case, ESP32s).? For example, I have ESP32 named 3Way01 controlling the two turnouts associated with a 3 way (numbered 01? and 02).? I created them with the following system names:
?
E32-3Way01/01
E32-3Way01/02
?
Note that the MC node is part of the turnout system name (as is the /).? JMRI will then send on topic as proscribed by my config, which follows the example in the JMRI MQTT documentation:
?
trains/jSend/to/E32-3Way01/01
trains/jSend/to/E32-3Way01/02
?
My ESP32 sketch subscribes to:
?
trains/jSend/to/E32-3Way01/#
?
Other ESP32s similarly subscribe to TOs attached to their id.
?
BTW, you might also check the MQTT group:? MQTT4MR.
?
Jerry
___________________________________
jerryg2003@...