Skip to content

system.isSensorDiscoverActive

since 1.6.4

Return if the sensor discover is active.

system.isSensorDiscoverActive()

Parameters

None.

Returns

Boolean

Examples

From the official Ethos documentation
print(system.isSensorDiscoverActive())
end

Real-world usage

Called 3 times across 3 open-source Ethos Lua projects. A few short excerpts:
if self.provisioned then return true end
if system.isSensorDiscoverActive and system.isSensorDiscoverActive() then

src/rfsuite/lib/frsky_sensors.lua:171

local session = self.framework.session
local discoverActive = system.isSensorDiscoverActive and system.isSensorDiscoverActive() == true

src/rfsuite/sensors/providers/frsky.lua:304