Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.44 KB

File metadata and controls

38 lines (30 loc) · 1.44 KB

Sensor

Properties

Name Type Description Notes
active bool Is the sensor active? [optional]
address str MAC address [optional]
alerts SensorAlerts [optional]
battery_voltage float Current battery voltage [optional]
calibration SensorCalibration [optional]
device_id str Short device Id [optional]
id str Long device Id [optional]
name str Name of the sensor sensor [optional]
rssi float Wireless signal strength in dB at last reading [optional]
tags Dict[str, Tags] List of tags associated with this device [optional]
type str Type of device hardward [optional]

Example

from sensorpush_api.models.sensor import Sensor

# TODO update the JSON string below
json = "{}"
# create an instance of Sensor from a JSON string
sensor_instance = Sensor.from_json(json)
# print the JSON string representation of the object
print Sensor.to_json()

# convert the object into a dict
sensor_dict = sensor_instance.to_dict()
# create an instance of Sensor from a dict
sensor_from_dict = Sensor.from_dict(sensor_dict)

[Back to Model list] [Back to API list] [Back to README]