Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.23 KB | None | 0 0
  1. {
  2. "DeviceProperties": {
  3. "DeviceID": "CoolingSampleDevice001_574",
  4. "HubEnabledState": true,
  5. "CreatedTime": "2017-10-12T09:41:05.5850203Z",
  6. "DeviceState": "normal",
  7. "UpdatedTime": "2018-05-19T00:28:02.025887Z",
  8. "Manufacturer": "Contoso Inc.",
  9. "ModelNumber": "MD-3",
  10. "SerialNumber": "SER3",
  11. "FirmwareVersion": "1.3",
  12. "AvailablePowerSources": null,
  13. "PowerSourceVoltage": null,
  14. "BatteryLevel": null,
  15. "MemoryFree": null,
  16. "HostName": null,
  17. "Platform": "Plat-3",
  18. "Processor": "i3-3",
  19. "InstalledRAM": "3 MB",
  20. "Latitude": 47.583582,
  21. "Longitude": -122.130622
  22. },
  23. "SystemProperties": {
  24. "ICCID": null
  25. },
  26. "Commands": [
  27. {
  28. "Name": "PingDevice",
  29. "DeliveryType": 0,
  30. "Parameters": [],
  31. "Description": "The device responds to this command with an acknowledgement. This is useful for checking that the device is still active and listening."
  32. },
  33. {
  34. "Name": "StartTelemetry",
  35. "DeliveryType": 0,
  36. "Parameters": [],
  37. "Description": "Instructs the device to start sending telemetry."
  38. },
  39. {
  40. "Name": "StopTelemetry",
  41. "DeliveryType": 0,
  42. "Parameters": [],
  43. "Description": "Instructs the device to stop sending telemetry."
  44. },
  45. {
  46. "Name": "ChangeSetPointTemp",
  47. "DeliveryType": 0,
  48. "Parameters": [
  49. {
  50. "Name": "SetPointTemp",
  51. "Type": "double"
  52. }
  53. ],
  54. "Description": "Controls the simulated temperature telemetry values the device sends. This is useful for testing back-end logic."
  55. },
  56. {
  57. "Name": "DiagnosticTelemetry",
  58. "DeliveryType": 0,
  59. "Parameters": [
  60. {
  61. "Name": "Active",
  62. "Type": "boolean"
  63. }
  64. ],
  65. "Description": "Controls if the device should send the external temperature as telemetry."
  66. },
  67. {
  68. "Name": "ChangeDeviceState",
  69. "DeliveryType": 0,
  70. "Parameters": [
  71. {
  72. "Name": "DeviceState",
  73. "Type": "string"
  74. }
  75. ],
  76. "Description": "Sets the device state metadata property that the device reports. This is useful for testing back-end logic."
  77. },
  78. {
  79. "Name": "InitiateFirmwareUpdate",
  80. "DeliveryType": 1,
  81. "Parameters": [
  82. {
  83. "Name": "FwPackageUri",
  84. "Type": "string"
  85. }
  86. ],
  87. "Description": "Updates device Firmware. Use parameter 'FwPackageUri' to specifiy the URI of the firmware file, e.g. https://iotrmassets.blob.core.windows.net/firmwares/FW20.bin"
  88. },
  89. {
  90. "Name": "Reboot",
  91. "DeliveryType": 1,
  92. "Parameters": [],
  93. "Description": "Reboot the device"
  94. },
  95. {
  96. "Name": "FactoryReset",
  97. "DeliveryType": 1,
  98. "Parameters": [],
  99. "Description": "Reset the device (including firmware and configuration) to factory default state"
  100. }
  101. ],
  102. "CommandHistory": [],
  103. "IsSimulatedDevice": true,
  104. "id": "37c75ad3-41e1-48f2-81eb-37f6193c0e8d",
  105. "_rid": "wOc8AN5-IwABAAAAAAAAAA==",
  106. "_self": "dbs/wOc8AA==/colls/wOc8AN5-IwA=/docs/wOc8AN5-IwABAAAAAAAAAA==/",
  107. "_etag": "\"0100b61b-0000-0000-0000-5aff6f920000\"",
  108. "_attachments": "attachments/",
  109. "Telemetry": [
  110. {
  111. "Name": "Temperature",
  112. "DisplayName": "Temperature",
  113. "Type": "double"
  114. },
  115. {
  116. "Name": "Humidity",
  117. "DisplayName": "Humidity",
  118. "Type": "double"
  119. }
  120. ],
  121. "Version": null,
  122. "ObjectType": null,
  123. "ObjectName": null,
  124. "IoTHub": null,
  125. "Twin": {
  126. "deviceId": "CoolingSampleDevice001_574",
  127. "etag": "AAAAAAAAAAU=",
  128. "tags": {
  129. "Building": "Building 40",
  130. "Floor": "1F",
  131. "HubEnabledState": "Running"
  132. },
  133. "properties": {
  134. "desired": {
  135. "Config": {
  136. "TemperatureMeanValue": 70
  137. },
  138. "$metadata": {
  139. "$lastUpdated": "2017-10-12T09:41:05.0087519Z",
  140. "$lastUpdatedVersion": 2,
  141. "Config": {
  142. "$lastUpdated": "2017-10-12T09:41:05.0087519Z",
  143. "$lastUpdatedVersion": 2,
  144. "TemperatureMeanValue": {
  145. "$lastUpdated": "2017-10-12T09:41:05.0087519Z",
  146. "$lastUpdatedVersion": 2
  147. }
  148. }
  149. },
  150. "$version": 2
  151. },
  152. "reported": {
  153. "Device": {
  154. "CreatedTime": "2017-10-12T09:41:13.1959705Z",
  155. "DeviceState": "normal",
  156. "Location": {
  157. "Latitude": 47.583582,
  158. "Longitude": -122.130622
  159. },
  160. "StartupTime": "5/19/2018 12:27:57 AM",
  161. "LastDesiredPropertyChange": "{\"Config\":{\"TemperatureMeanValue\":70},\"$version\":2}"
  162. },
  163. "System": {
  164. "Manufacturer": "Contoso Inc.",
  165. "ModelNumber": "MD-3",
  166. "SerialNumber": "SER3",
  167. "FirmwareVersion": "1.3",
  168. "Platform": "Plat-3",
  169. "Processor": "i3-3",
  170. "InstalledRAM": "3 MB"
  171. },
  172. "SupportedMethods": {
  173. "InitiateFirmwareUpdate--FwPackageUri-string": "Updates device Firmware. Use parameter 'FwPackageUri' to specifiy the URI of the firmware file, e.g. https://iotrmassets.blob.core.windows.net/firmwares/FW20.bin",
  174. "Reboot": "Reboot the device",
  175. "FactoryReset": "Reset the device (including firmware and configuration) to factory default state"
  176. },
  177. "Config": {
  178. "TelemetryInterval": 15,
  179. "TemperatureMeanValue": 34.5
  180. },
  181. "Method": {},
  182. "$metadata": {
  183. "$lastUpdated": "2018-05-19T00:27:58.4067733Z",
  184. "Device": {
  185. "$lastUpdated": "2018-05-19T00:27:58.4067733Z",
  186. "CreatedTime": {
  187. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  188. },
  189. "DeviceState": {
  190. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  191. },
  192. "Location": {
  193. "$lastUpdated": "2017-10-12T09:41:15.4122898Z",
  194. "Latitude": {
  195. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  196. },
  197. "Longitude": {
  198. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  199. }
  200. },
  201. "StartupTime": {
  202. "$lastUpdated": "2018-05-19T00:27:58.4067733Z"
  203. },
  204. "LastDesiredPropertyChange": {
  205. "$lastUpdated": "2018-05-15T03:16:37.6057498Z"
  206. }
  207. },
  208. "System": {
  209. "$lastUpdated": "2017-10-12T09:41:15.4122898Z",
  210. "Manufacturer": {
  211. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  212. },
  213. "ModelNumber": {
  214. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  215. },
  216. "SerialNumber": {
  217. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  218. },
  219. "FirmwareVersion": {
  220. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  221. },
  222. "Platform": {
  223. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  224. },
  225. "Processor": {
  226. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  227. },
  228. "InstalledRAM": {
  229. "$lastUpdated": "2017-10-12T09:41:15.4122898Z"
  230. }
  231. },
  232. "SupportedMethods": {
  233. "$lastUpdated": "2018-05-19T00:27:58.4067733Z",
  234. "InitiateFirmwareUpdate--FwPackageUri-string": {
  235. "$lastUpdated": "2018-05-19T00:27:58.4067733Z"
  236. },
  237. "Reboot": {
  238. "$lastUpdated": "2018-05-19T00:27:58.4067733Z"
  239. },
  240. "FactoryReset": {
  241. "$lastUpdated": "2018-05-19T00:27:58.4067733Z"
  242. }
  243. },
  244. "Config": {
  245. "$lastUpdated": "2018-05-19T00:27:58.4067733Z",
  246. "TelemetryInterval": {
  247. "$lastUpdated": "2018-05-19T00:27:58.4067733Z"
  248. },
  249. "TemperatureMeanValue": {
  250. "$lastUpdated": "2018-05-19T00:27:58.4067733Z"
  251. }
  252. },
  253. "Method": {
  254. "$lastUpdated": "2018-05-15T03:16:39.6871615Z"
  255. }
  256. },
  257. "$version": 316
  258. }
  259. }
  260. },
  261. "_ts": 1526689682
  262. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement