2020-05-21 15:40:24 +00:00
|
|
|
UPDATE sensors
|
|
|
|
SET
|
|
|
|
sensor_name = $1,
|
|
|
|
sensor_location = $2,
|
|
|
|
wire_id = $3,
|
|
|
|
i2c_bus = $4,
|
|
|
|
i2c_address = $5,
|
|
|
|
gpio_number = $6,
|
|
|
|
sensor_model = $7,
|
|
|
|
sensor_enabled = $8,
|
2020-05-31 22:52:54 +00:00
|
|
|
tick_duration = $9,
|
|
|
|
device_id = $10,
|
2020-06-01 20:36:57 +00:00
|
|
|
creation_date = $11,
|
|
|
|
update_date = $12
|
2020-05-21 15:40:24 +00:00
|
|
|
WHERE
|
2020-06-01 20:36:57 +00:00
|
|
|
sensor_id = $13;
|