Skip to content

Get device gateway reading by id

GET
/devices/id/gatewayReadings/fk

Parameters

Path Parameters

id*

device id

Typenumber
Required
fk*

Foreign key for gatewayReadings

Typenumber
Required

Responses

Body (JSON)
JSON
{
"timestamp": "string",
"created": "string",
"type": "string",
"value": {
},
"rssi": 0,
"meta": {
},
"relatedId": 0,
"correlationId": "string",
"id": 0,
"gatewayId": 0,
"deviceId": 0,
"sensorDeviceId": "string",
"datapointId": 0
}

Samples

cURL
curl -X GET https://api.lightbug.cloud/api/devices/id/gatewayReadings/fk
JavaScript
fetch("https://api.lightbug.cloud/api/devices/id/gatewayReadings/fk")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://api.lightbug.cloud/api/devices/id/gatewayReadings/fk");
Python
import requests
response = requests.get("https://api.lightbug.cloud/api/devices/id/gatewayReadings/fk")
print(response.json())