The add function of the drivers also needs to get as parameter the id field of the sensor, which is its ID in the DB.
The driver should pass this information to the sensor (or its base), so it can send valid requests to push new measures.
(Indeed, customId can't be used since we can't be sure it is unique - unless we also pass the type field).
The
addfunction of the drivers also needs to get as parameter theidfield of the sensor, which is its ID in the DB.The driver should pass this information to the sensor (or its base), so it can send valid requests to push new measures.
(Indeed,
customIdcan't be used since we can't be sure it is unique - unless we also pass thetypefield).