# Change XYZ to the UID of your Industrial Dual 0-20mA Bricklet 2.0

setup:
	# Handle incoming current callbacks
	subscribe to tinkerforge/callback/industrial_dual_0_20ma_v2_bricklet/XYZ/current
	publish '{"register": true}' to tinkerforge/register/industrial_dual_0_20ma_v2_bricklet/XYZ/current # Register current callback
	
	# Set period for current (channel 0) callback to 1s (1000ms) without a threshold
	publish '{"channel": 0, "period": 1000, "value_has_to_change": false, "option": "off", "min": 0, "max": 0}' to tinkerforge/request/industrial_dual_0_20ma_v2_bricklet/XYZ/set_current_callback_configuration  
