Get State2
Description: Acquires the GPS onformation of Theta.
Service UUID | b6ac7a7e-8c01-4a52-b188-68d53df53ea2 |
---|
Characteristic UUID | 8881ce4e-96fc-4c6c-8103-5dda0ad138fb |
---|
Value format | UTF-8 string (JSON) |
---|
Enabled to read | true |
---|
Enabled to write | false |
---|
Enabled to notify | false |
---|
Example:
{
"_externalGpsInfo": {
"gpsInfo": {
"_altitude": 12.345678,
"_dateTimeZone": "2024:01:23 01:23:45+01:00",
"_datum": "WGS84",
"lat": 12.345678,
"lng": 123.45678
}
},
"_internalGpsInfo": {}
}
Property |
Type |
Required |
Description |
_externalGpsInfo |
object |
yes |
Location data obtained through an external device using an API. |
_internalGpsInfo |
object |
yes |
Location data obtained through an internal GPS module |
_externalGpsInfo
Description: Location data obtained through an external device using an API.
Property |
Type |
Required |
Description |
gpsInfo |
object |
no |
GPS location information |
gpsInfo
Description: GPS location information
Property |
Type |
Required |
Description |
lat |
number |
yes |
Latitude from -90 to 90. If GPS is disabled then 65535 |
lng |
number |
yes |
Longitude from -180 to 180. If GPS is disabled then 65535 |
_altitude |
number |
yes |
Altitude. If GPS is disabled then 0 |
_dateTimeZone |
string |
yes |
Date, time and time zone. If GPS is disabled then empty string |
_datum |
string |
yes |
Geodetic reference. If GPS is disabled then empty string |
lat
Description: Latitude from -90 to 90.
If GPS is disabled then 65535
|
Restrictions |
Minimum |
≥ -90 |
lng
Description: Longitude from -180 to 180.
If GPS is disabled then 65535
|
Restrictions |
Minimum |
≥ -180 |
_altitude
Description: Altitude.
If GPS is disabled then 0
_dateTimeZone
Description: Date, time and time zone.
If GPS is disabled then empty string
Restrictions |
|
Must match regular expression |
([0-9]{4}:[0-9]{2}:[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2})|(^$) Test |
_datum
Description: Geodetic reference.
If GPS is disabled then empty string
_internalGpsInfo
Description: Location data obtained through an internal GPS module
Property |
Type |
Required |
Description |
gpsInfo |
object |
no |
GPS location information |
gpsInfo
|
Definitions |
Type |
object |
Same definition as |
gpsInfo |
Description: GPS location information