# Change XYZ to the UID of your Industrial Dual Analog In Bricklet

setup:
	# Handle incoming voltage callbacks
	subscribe to tinkerforge/callback/industrial_dual_analog_in_bricklet/XYZ/voltage
	publish '{"register": true}' to tinkerforge/register/industrial_dual_analog_in_bricklet/XYZ/voltage # Register voltage callback
	
	# Set period for voltage (channel 1) callback to 1s (1000ms)
	# Note: The voltage (channel 1) callback is only called every second
	#       if the voltage (channel 1) has changed since the last call!
	publish '{"channel": 1, "period": 1000}' to tinkerforge/request/industrial_dual_analog_in_bricklet/XYZ/set_voltage_callback_period
