Skip to main content

gnss-session.getstate()

Query the GNSS sub-system’s state

Availability

Device (from impOS™ 44)
Only available on imps with cellular modems

Returns

Table — see below

Description

This documentation covers a feature not yet available in a production version of impOS and has been provided for early testers only. It is preliminary and subject to change

Call this method to determine whether the GNSS sub-system is enabled. The returned table contains the key status — its value will be one of the following integers:

Value Description
1 the GNSS sub-system is on (as returned by the modem)
0 the GNSS sub-system is off