When using the MQTT for the first time, click the Generate new API key button.
Note:
Copy the key and save it in a secure place because it is not possible to access it again.
The API key is used as a password when configuring an MQTT client to receive MQTT notifications.
8.4.1
Example of uplink data
The following is an example of uplink data notified by MQTT (in JSON format):
{"end_device_ids":{"device_id":"eui-0080e115000ac6ed","application_ids":{"application_id":"my
-mqtt-test-app"},"dev_eui":"0080E115000AC6ED","join_eui":"5EB85756A7713816","dev_addr":"260B8
E6D"},"correlation_ids":["as:up:01GRB7X7HPZCEPR45MQ74901PY","gs:conn:01GRB3WA7DG81T87VR2RDK07
Z2","gs:up:host:01GRB3WA7PHRMD5CN1PJCGK2NW","gs:uplink:01GRB7X7B6RCQA8A07C3BV75JB","ns:uplink
:01GRB7X7B7N1XZGW2ACAVHJDW6","rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01GRB7X7B6RKZEY6TDB7ZM1TX
X","rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01GRB7X7HN9WA1524QXE01SGKC"],"received_at":"2023-02
-03T08:57:22.229736325Z","uplink_message":{"session_key_id":"AYYWfV3anqaW2UbmYuF/hg==","f_por
t":2,"f_cnt":2,"frm_payload":"BAAAVtkAADyZAACGuhUH5AGSJwY=","decoded_payload":{"ampr":1.5513,
"bmehum":40.2,"bmepres":999,"bmetemp":20.2,"cfg_notif":0,"event_type":1,"temp":21,"volt":222.
33,"watt":344.9},"rx_metadata":[{"gateway_ids":{"gateway_id":"eui-58a0cbfffe8049c2","eui":"58
A0CBFFFE8049C2"},"time":"2023-02-03T08:57:21.867705106Z","timestamp":4222790348,"rssi":-33,"c
hannel_rssi":-33,"snr":7.5,"location":{"latitude":45.15531774774593,"longitude":5.76038496805
9596,"source":"SOURCE_REGISTRY"},"uplink_token":"CiIKIAoUZXVpLTU4YTBjYmZmZmU4MDQ5YzISCFigy//+
gEnCEMzVyt0PGgsI8pjzngYQ//S+CiDg2ayP83o=","received_at":"2023-02-03T08:57:21.868256649Z"}],"s
ettings":{"data_rate":{"lora":{"bandwidth":125000,"spreading_factor":7,"coding_rate":"4/5"}},
"frequency":"867500000","timestamp":4222790348,"time":"2023-02-03T08:57:21.867705106Z"},"rece
ived_at":"2023-02-03T08:57:22.023110775Z","consumed_airtime":"0.082176s","locations":{"frm-pa
yload":{"latitude":35.31856,"longitude":25.10272,"altitude":61,"source":"SOURCE_GPS"},"user":
{"latitude":45.1554092,"longitude":5.7604965,"altitude":283,"source":"SOURCE_REGISTRY"}},"net
work_ids":{"net_id":"000013","tenant_id":"ttn","cluster_id":"eu1","cluster_address":"eu1.clou
d.thethings.network"}}}
Reading JSON data is difficult because the data is not indented. It is possible to format the data with an online
formatter (for an example, see [11]). The structure is easier to read, as shown below.
UM3146 - Rev 1
Figure 25.
MQTT URL and credentials
UM3146
Display of LoRa® data
page 22/33
Need help?
Do you have a question about the ST25DV64KC and is the answer not in the manual?