From 376db07e51200898cce34de457cfe1b3e94edec9 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Mon, 22 Jun 2020 17:21:23 +0100 Subject: [PATCH] Switched to PUT for properties --- examples/simple_thing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/simple_thing.py b/examples/simple_thing.py index a0d1a2c3..1936576a 100644 --- a/examples/simple_thing.py +++ b/examples/simple_thing.py @@ -85,8 +85,8 @@ def get(self): my_component = find_component("org.labthings.example.mycomponent") return my_component.magic_denoise - # Main function to handle POST requests (write) - def post(self, new_property_value): + # Main function to handle PUT requests (write) + def put(self, new_property_value): """Change the current magic_denoise value""" # Find our attached component