Skip to content

Source:physId

since 1.5.5

Get or set the physId of the source if it is a FrSky sensor.

local physId = source:physId([physId])

Parameters

Name Type Required Description
physId integer optional

Returns

physId (integer)

Examples

From the official Ethos documentation
source = system.getSource({name="GPS"})
source:physId(0x01)
print(source:name() .. " module:" .. source:module() .. " band:" .. source:band() .. " appId:" .. source:appId() .. " physId:" .. source:physId())