# Change XYZ to the UID of your Current12 Bricklet

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