Skip to content

Commit

Permalink
Fixed parseInt bug with creation of a ParseUtils class
Browse files Browse the repository at this point in the history
    Implemented the Orion version of QueryContext
    Revised documentation and tutorial
    Better usage of logs
    Better usage of threads
  • Loading branch information
flaviocirillo committed Sep 6, 2017
1 parent a725605 commit e84aa12
Show file tree
Hide file tree
Showing 36 changed files with 1,979 additions and 852 deletions.
29 changes: 22 additions & 7 deletions doc/historyqueries.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ iotbroker_embeddedagent_couchdbprotocol="http"
iotbroker_embeddedagent_couchdbhost="127.0.0.1"
iotbroker_embeddedagent_couchdbport=5984
iotbroker_embeddedagent_historicallyTrackQueryResponseAndNotifications=false
iotbroker_embeddedagent_storeOnlyLatestValue=false
iotbroker_embeddedagent_localagentid="embeddedagent1"
```


Expand Down Expand Up @@ -68,10 +70,14 @@ Body:
}]
}
```
Reponse:
```
{"errorCode":null,"contextResponses":null}
```

Another update with a different timestamp

```
HTTP POST to http://10.0.2.199:8060/ngsi10/updateContext
Content-Type:application/json
Expand All @@ -97,11 +103,15 @@ Body:
}]
}]
}
```
Response:

```
{"errorCode":null,"contextResponses":null}
```

Another update with a different timestamp and different attribute

```
HTTP POST to http://10.0.2.199:8060/ngsi10/updateContext
Content-Type:application/json
Expand All @@ -127,12 +137,13 @@ Body:
}]
}]
}
```
Response:
```
{"errorCode":null,"contextResponses":null}
```

The final update will not contain an explicit timestamp:
The final update does not contain an explicit timestamp:

```
HTTP POST to http://10.0.2.199:8060/ngsi10/updateContext
Expand All @@ -154,8 +165,9 @@ Body:
}]
}]
}
```
Response:
```
{"errorCode":null,"contextResponses":null}
```

Expand Down Expand Up @@ -187,8 +199,9 @@ Body:
}]
}
}
```
Response:
```
{
"contextResponses": [{
"contextElement": {
Expand Down Expand Up @@ -253,8 +266,7 @@ Response:
}
```

The second query asks for all entities with attributes *temperature* and *noise*, but this time without specifying a time interval. In this case the IoT Broker will respond with
the list of the latest values matching the query.
The second query asks for all entities with attributes *temperature* and *noise*, but this time without specifying a time interval. In this case the IoT Broker will respond with the list of the latest values matching the query.

```
HTTP POST to http://10.0.2.199:8060/ngsi10/queryContext
Expand All @@ -270,7 +282,10 @@ Body:
"attributes": ["temperature","noise"]
}
```

Response:
```
{
"contextResponses": [{
"contextElement": {
Expand Down
Loading

0 comments on commit e84aa12

Please sign in to comment.