diff --git a/server/SHServ/Entities/Device.php b/server/SHServ/Entities/Device.php index 5711b63..ebb0111 100644 --- a/server/SHServ/Entities/Device.php +++ b/server/SHServ/Entities/Device.php @@ -72,6 +72,9 @@ case "button": $this -> device_api_instance = new Button($this -> device_ip); break; + case "sensor": + $this -> device_api_instance = new Sensor($this -> device_ip); + break; default: $this -> device_api_instance = new Base($this -> device_ip); } diff --git a/server/SHServ/Tools/DeviceAPI/Sensor.php b/server/SHServ/Tools/DeviceAPI/Sensor.php new file mode 100644 index 0000000..48376d6 --- /dev/null +++ b/server/SHServ/Tools/DeviceAPI/Sensor.php @@ -0,0 +1,7 @@ +