Uplinks


{
	"bandwidth": <bandwidth in kHz as an integer, e.g. 125>,
	"bit_rate": <bit rate as an integer>,
	"coding_rate": "<coding rate, the fraction of non-redundant bits to the total number of bits as a string, e.g. 4/5>",
	"data_rate": "<spreading factor, bandwidth and coding rate a string, e.g. SF7 BW125 4/5>",
	"dev_eui": "<64-bit as hex value string, e.g. 0001020304050607>",
	"f_cnt_up": <uplink frame counter as integer, e.g. 21144>,
	"f_port": <integer: frame port, e.g. 125>,
	"frequency": <radio frequency in kHz^-6 as integer, e.g. 867100000>,
	"modulation": "<modulation scheme as string, e.g. LORA>",
	"network_server_time": "<RFC-3339 timestamp as string, e.g. 2006-01-02T15:04:05Z",
	"raw_payload": "<the raw payload as a hex-encoded string, e.g. 110a000c0055393ba15468>",
	"receptions": [{
		"gateway": "",
		"rssi": -69,
		"snr": 9.2,
		"time": "2019-02-27T15:23:37.311Z"
	}],
	"rssi": -69,
	"snr": null,
	"spread_factor": 7,
	"time": "2019-02-27T15:23:37.311Z",
	"uplink_metadata": {
		"id": "4-70b3d5e75e00470c-5",
		"name": "",
		"driver": "",
		"labels": null,
		"state": {
			"desired": {
				
			},
			"reported": {
				"RawPayload": "110a000c0055393ba15468"
			}
		},
		"last_data_received": {
			"received_at": "2019-02-27T15:23:37.56722709Z",
			"raw": "110a000c0055393ba15468"
		},
		"connectivity": {
			"connections": [{
				"network_server_id": 4,
				"network_device_id": "70B3D5E75E00470C",
				"network_server": {
					"id": 4,
					"name": "Loriot over insecure TLS"
				}
			}]
		}
	}
}
CODE


State Updates

{
	"RawPayload": "110a000c0055393ba15468",
	"update_metadata": {
		"id": "4-70b3d5e75e00470c-5",
		"name": "",
		"driver": "",
		"labels": null,
		"state": {
			"desired": {
				
			},
			"reported": {
				"RawPayload": "110a000c0055393ba15468"
			}
		},
		"last_data_received": {
			"received_at": "2019-02-27T15:23:37.56722709Z",
			"raw": "110a000c0055393ba15468"
		},
		"connectivity": {
			"connections": [{
				"network_server_id": 4,
				"network_device_id": "70B3D5E75E00470C",
				"network_server": {
					"id": 4,
					"name": "Loriot over insecure TLS"
				}
			}]
		}
	}
}
CODE