setTelemetryValue(id, subID, instance, value [, unit [, precision [, name]]])
@status current Introduced in 2.2.0
Parameters
idId of the sensor, valid range is from 0 to 0xFFFFsubIDsubID of the sensor, usually 0, valid range is from 0 to 7instanceinstance of the sensor (SensorID), valid range is from 0 to 0xFFvaluefed to the sensorunitunit of the sensor Full listprecisionthe precision of the sensor0 or not presentno decimal precision.!= 0value is divided by 10^precision, e.g. value=1000, prec=2 => 10.00.
name(string) Name of the sensor if it does not yet exist (4 chars).not presentName defaults to the Id.presentSensor takes name of the argument. Argument must have name surrounded by quotes: e.g., "Name"
Return value
true,if the sensor was just added. In this case the value is ignored (subsequent call will set the value)
Notice
All three parameters id, subID and instance can't be zero at the same time. At least one of them must be different from zero.
Last updated
Was this helpful?