# 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
	
	# Configure threshold for current (channel 0) "greater than 10 mA"
	# with a debounce period of 10s (10000ms)
	publish '{"channel": 0, "period": 10000, "value_has_to_change": false, "option": "greater", "min": 10000000, "max": 0}' to tinkerforge/request/industrial_dual_0_20ma_v2_bricklet/XYZ/set_current_callback_configuration  
