Skip to content

External BaseStation Status Change

GET
/devices/id/updateRtkBaseStatus

Parameters

Path Parameters

id*

device id

Typenumber
Required
formatinteger

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
format
lng

Longitude of the external base

Typenumber
format
alt

Altitude of the external base

Typenumber
format

Responses

Body (JSON)
application/json
JSON
{
"deviceId": 0,
"type": "string",
"group": 0,
"connected": "string",
"surveyCompleted": "string",
"location": {
"lat": 0,
"lng": 0
},
"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' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://api.lightbug.cloud/api/devices/id/updateRtkBaseStatus', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://api.lightbug.cloud/api/devices/id/updateRtkBaseStatus';
$method = 'GET';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://api.lightbug.cloud/api/devices/id/updateRtkBaseStatus'

headers = {
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)
print(response.json())