# Change XYZ to the UID of your Load Cell Bricklet 2.0

setup:
	# Handle incoming weight callbacks
	subscribe to tinkerforge/callback/load_cell_v2_bricklet/XYZ/weight
	publish '{"register": true}' to tinkerforge/register/load_cell_v2_bricklet/XYZ/weight # Register weight callback
	
	# Configure threshold for weight "greater than 200 g"
	# with a debounce period of 1s (1000ms)
	publish '{"period": 1000, "value_has_to_change": false, "option": "greater", "min": 200, "max": 0}' to tinkerforge/request/load_cell_v2_bricklet/XYZ/set_weight_callback_configuration  
