Latest code at https://github.com/travis-farmer/trainMQTT
definition of the config.ini file:
? = the required count value.
example: if you are defining 10 turnouts, then "turnout = 10".
if "debug = 1" then it will print debug messages to serial.
?a is the sensor ID (in JMRI).
?b is the sensor MCP pin.
?a is the turnout ID.
?b is the MCP pin.
?a is the light ID.
?b is the MCP pin.
definition of the config.ini file:
Code:
[counts]
sensor = ?
turnout = ?
light = ?
debug = ?
example: if you are defining 10 turnouts, then "turnout = 10".
if "debug = 1" then it will print debug messages to serial.
Code:
[sensor]
1 = ?a:?b
?b is the sensor MCP pin.
Code:
[turnout]
1 = ?a:?b
?b is the MCP pin.
Code:
[light]
1 = ?a:?b
?b is the MCP pin.