# 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
	
	# Set period for weight callback to 1s (1000ms) without a threshold
	publish '{"period": 1000, "value_has_to_change": false, "option": "off", "min": 0, "max": 0}' to tinkerforge/request/load_cell_v2_bricklet/XYZ/set_weight_callback_configuration  
