LuaSPortSensor¶
LuaSPortSensor is an object type. You don't create it directly: you get one from another call, then call its methods with a colon, e.g. sensor:band().
Methods¶
| Function | Description | Since |
|---|---|---|
band() |
Get / Set the band. | 1.1.0 |
rx() |
Get / Set the rx index. | 1.1.0 |
physId() |
Get / Set the physId of sensor. | 1.1.0 |
appId() |
Get / Set the appId of sensor. | 1.1.0 |
writeParameter() |
Write a parameter to the S.Port Sensor. | 1.1.0 |
idle() |
Set / unset the S.Port Sensor IDLE mode. | 1.1.0 |
requestParameter() |
Send a parameter request to the S.Port Sensor. | 1.1.0 |
getParameter() |
Get a parameter if received from the S.Port Sensor. | 1.1.0 |
pushFrame() |
Push a S.Port frame. | 1.1.0 |
discover() |
Return true if the sensor is alive and updates its module / band / rx / appId / physId. | 1.6.3 |
popFrame() |
Pop a S.Port frame. | 1.1.0 |