# Change XYZ to the UID of your Load Cell Bricklet

setup:
	# Get threshold callbacks with a debounce time of 1 second (1000ms)
	publish '{"debounce": 1000}' to tinkerforge/request/load-cell_bricklet/XYZ/set_debounce_period
	
	# Handle incoming weight reached callbacks
	subscribe to tinkerforge/callback/load_cell_bricklet/XYZ/weight_reached
	publish '{"register": true}' to tinkerforge/register/load_cell_bricklet/XYZ/weight_reached # Register weight_reached callback
	
	# Configure threshold for weight "greater than 200 g"
	publish '{"option": "greater", "min": 200, "max": 0}' to tinkerforge/request/load_cell_bricklet/XYZ/set_weight_callback_threshold
