### Sample IO-16

Several examples using MQTT for the IO-16 Bricklet.
Get the configuration
mosquitto_sub -v -t tinkerforge/enumerate/available/#
Output Example:
tinkerforge/enumerate/available/bricklet/io16 [{"_timestamp":1449585355.287713,"uid":"gkM","hardware_version":[1,1,0],"device_identifier":28,"connected_uid":"6JKVjS","position":"c","firmware_version":[2,0,5]}]
tinkerforge/enumerate/available/bricklet/ambient_light [{"_timestamp":1449585355.299779,"uid":"mdh","hardware_version":[1,1,0],"device_identifier":21,"connected_uid":"6JKVjS","position":"d","firmware_version":[2,0,3]}]
Set Port A0 to HIGH = LED is ON.
The JSON set string is port -- char, selection_mask -- uint8, direction -- char, value -- bool
mosquitto_pub -t tinkerforge/bricklet/io16/gkM/port_configuration/set -m '{"port":"a", "selection_mask":1, "direction":"o", "value":true}'

Changed: , Category: TinkerForge MQTT, File: T6C266M1980.htm, ID: 1980