Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:connect_to_thingsee_mqtt [2019/12/02 16:38]
tmuvee
howto:connect_to_thingsee_mqtt [2020/02/12 08:05] (current)
tmuvee
Line 5: Line 5:
 ===== Topic Structure ===== ===== Topic Structure =====
  
-cloudext/​json/​{**groupId Prefix Environment**}/​{**groupId Prefix Country**}/​{**groupId CustomerId**}/​{**tuid**}/{**messageId**}+cloudext/​json/​{**groupId Prefix Environment**}/​{**groupId Prefix Country**}/​{**groupId CustomerId**}/​{tuid}/​{messageId}
  
 An MQTT client (customer cloud) can subscribe ​ An MQTT client (customer cloud) can subscribe ​
Line 23: Line 23:
  
 Messages are published as a single JSON objects as described in [[messages:​thingsee_messages_overview|]] Messages are published as a single JSON objects as described in [[messages:​thingsee_messages_overview|]]
 +
 +==== Sample data ====
 +
 +Example message published to cloudext/​json/​rd/​fi/​samplegroup/​XXXX03X2Z80562557/​12100
 +
 +<​Code:​js>​
 +{
 +    "​tsmId":​ 12100,
 +    "​tsmEv":​ 10,
 +    "​airp":​ 101364.599,
 +    "​lght":​ 6,
 +    "​temp":​ 21.3,
 +    "​humd":​ 21.7,
 +    "​tsmTs":​ 1520416221,
 +    "​tsmTuid":​ "​XXXX03X2Z80562557",​
 +    "​tsmGw":​ "​XXXX00EFS80560445"​
 +}
 +</​Code>​
 +
 +Example message published to cloudext/​json/​rd/​fi/​samplegroup/​XXXX03X2Z80562557/​1111
 +
 +<​Code:​js>​
 +{
 +    "​tsmId":​ 1111,
 +    "​tsmEv":​ 10,
 +    "​accx":​ -1024,
 +    "​accy":​ 64,
 +    "​accz":​ -192,
 +    "​tsmTs":​ 1520416221,
 +    "​tsmTuid":​ "​XXXX03X2Z80562557",​
 +    "​tsmGw":​ "​XXXX00EFS80560445"​
 +}
 +</​Code>​
 +
 +===== Mosquitto example =====
 +
 +<​Code>​
 +mosquitto_sub --cert ./​tsops_aws_xxxxxx.pem --key ./​tsops_aws_xxxxxx.key --cafile ./​root-ca.crt -h xxxxxx.iot.ap-xxxxxx.amazonaws.com -p 8883 -t '​cloudext/​json/#'​
 +</​Code>​