Skip to content

External BaseStation Status Change

GET
/devices/id/updateRtkBaseStatus

Parameters

Path Parameters

id*

device id

Typenumber
Required

Query Parameters

online*

If the external base is online. If true, the other parameters are required

Typeboolean
Required
lat

Latitude of the external base

Typenumber
lng

Longitude of the external base

Typenumber
alt

Altitude of the external base

Typenumber

Responses

Body (JSON)
JSON
{
"deviceId": 0,
"type": "string",
"group": 0,
"connected": "string",
"surveyCompleted": "string",
"location": null,
"accuracy": 0,
"status": "string",
"fixedPositionLat": 0,
"fixedPositionLng": 0,
"fixedPositionAlt": 0,
"surveyTime": 0,
"surveyMinAcc": 0,
"surveyRequested": true,
"valid": true
}

Samples

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