Source:subId
since 1.6.2
Get or set the subId of the source if it is a CRSF or a FrSky sensor.
local crsfId = source:subId([crsfId])
Parameters
| Name |
Type |
Required |
Description |
crsfId |
integer |
optional |
|
Returns
crsfId (integer)
Examples
From the official Ethos documentationsource = system.getSource({name="Tx SNR"})
print(source:name() .. " module:" .. source:module() .. " crsfId:" .. source:crsfId()) .. " subId:" .. source:subId())