Returns observation views of the given time range from database.
The function returns the following error codes:
E_ALLOC if memory allocation failed.E_DB_BIND if value binding failed.E_DB_DONE if statement finished.E_DB_FINALIZE if statement finalisation failed.E_DB_NO_ROWS if no rows are returned.E_DB_PREPARE if statement preparation failed.E_DB_STEP if step execution failed.E_DB_TYPE if returned columns are unexpected.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database type. |
||
| type(observ_view_type), | intent(out), | allocatable | :: | views(:) |
Returned observation views. |
|
| character(len=*), | intent(in) | :: | node_id |
Node id. |
||
| character(len=*), | intent(in) | :: | sensor_id |
Sensor id. |
||
| character(len=*), | intent(in) | :: | target_id |
Target id. |
||
| character(len=*), | intent(in) | :: | response_name |
Response name. |
||
| character(len=*), | intent(in) | :: | from |
Beginning of time span. |
||
| character(len=*), | intent(in) | :: | to |
End of time span. |
||
| integer(kind=i8), | intent(in), | optional | :: | limit |
Max. number of views. |
|
| integer(kind=i8), | intent(out), | optional | :: | nviews |
Total number of views (may be greater than limit). |