Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.15 KB

File metadata and controls

40 lines (31 loc) · 1.15 KB

Device

Properties

Name Type Description Notes
id int
code str
state int
description str
tenant_id int
properties object
altitude float [optional]
latitude float [optional]
longitude float [optional]
location_description str [optional]
sensors List[Sensor]
created_at datetime

Example

from sensorbucket.models.device import Device

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

# convert the object into a dict
device_dict = device_instance.to_dict()
# create an instance of Device from a dict
device_from_dict = Device.from_dict(device_dict)

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