Skip to content

Commit

Permalink
output modeljson descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
tinkerborg committed May 12, 2020
1 parent 96d2d36 commit f4fed5e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ def shutdown(sig, frame):
print("Devices:\n")

for device in devices.items:
print("-------\nDevice: {} ({})\n".format(device.model_name, device.alias))
print({ **thinq.mqtt.thinq_client.get_raw_device(device.device_id)["result"], **dict(deviceId="00000000-0000-0000-0000-000000000000")})

print("\n")
print(thinq.thinq_client.get_model_json_descriptor(device_id=device.device_id, model_name=device.model_name))
print("\n")
exit()

# print("{}: {} (model {})".format(device.device_id, device.alias, device.model_name))

#################################################################################
# example of raw MQTT access #
#################################################################################
Expand Down

0 comments on commit f4fed5e

Please sign in to comment.