On Jan 8, 2019, at 4:00 PM, Dave <davemc@...> wrote:
Compatibility with the current arrangement is pretty much lost regardless. Perhaps it will need a setting on the connection page that says something like Use basic (i.e. the original) format topic for turnouts with this being selected by default if existing MQTT devices are found so existing use doesn't fail when the new release of JMRI gets installed and the user can migrate to the new format at their convenience. All other devices to use the new format. Don't display that option if no old format MQTT turnouts exist. NB: Just a warning that there are other systems that can use the system character 'M'.
(Separate reply in case it becomes a separate thread)
I think the goal is to create ¡°how JMRI works with MQTT¡± without a lot of attention to the (very small) number of existing setups.
Any Light/Sensor/Report support will be entirely new. Any JMRI configurations that have working Turnouts can be converted via the JMRI tables or by editing their panel files: No changes to the external MQTT devices and broker(s) is necessary. (That panel-editing operation should be trivial for people who¡¯ve been doing some of the things being discussed here).
I¡¯m not going to spend time coding migration steps. If somebody else wants to, that¡¯s maybe fine, maybe not.
Bob
--
Bob Jacobsen
rgj1927@...