Returns sensor data associated with given sensor id from database.
The function returns the following error codes:
E_DB_BIND
if value binding failed.E_DB_NO_ROWS
if no rows are returned.E_DB_PREPARE
if statement preparation failed.E_DB_TYPE
if returned columns are unexpected.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(db_type), | intent(inout) | :: | db |
Database type. |
||
type(sensor_type), | intent(out) | :: | sensor |
Returned sensor data. |
||
character(len=*), | intent(in) | :: | sensor_id |
Sensor id. |