Skip to content

Commit 9c4781b

Browse files
committed
docs: use url of odata endpoint
1 parent c577578 commit 9c4781b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ Since version 2.0.0 this client supports general OData models hosted by FROST se
138138

139139
For this purpose the client provides a command line interface for generating a service module containing the URL of the FROST server in use as well as source code for the Python classes corresponding to the data model contained in the server. It is called like this:
140140
```bash
141-
frost-codegen --url http://localhost:8080/FROST-Server/ODATA_4.01/ --output-dir my_service_module
141+
frost-codegen --url http://localhost:8080/FROST-Server/ODATA_4.01 --output-dir my_service_module
142142
```
143143
or
144144
```bash
145-
frost-codegen --url http://localhost:8080/FROST-Server/ODATA_4.0/ --output-dir my_service_module
145+
frost-codegen --url http://localhost:8080/FROST-Server/ODATA_4.0 --output-dir my_service_module
146146
```
147147
making use of the OData 4.01 or OData 4.0 endpoint of the FROST server, respectively.
148148

@@ -153,8 +153,8 @@ Variant I:
153153
import frost_sta_client as fsc
154154
from geojson import Point
155155
156-
url = "http://localhost:8080/FROST-Server"
157-
service = fsc.SensorThingsService(url)
156+
sensor_things_url = "http://localhost:8080/FROST-Server"
157+
service = fsc.SensorThingsService(sensor_things_url)
158158
159159
point = Point((-115.81, 37.24))
160160
location = fsc.Location(name="here", description="and there", location=point, encoding_type='application/geo+json')
@@ -171,8 +171,8 @@ import frost_sta_client as fsc
171171
import my_model as model
172172
from geojson import Point
173173
174-
url = "http://localhost:8080/FROST-Server"
175-
service = fsc.SensorThingsService(url)
174+
odata_url = "http://localhost:8080/FROST-Server/ODATA_4.01"
175+
service = fsc.SensorThingsService(odata_url)
176176
177177
point = Point((-115.81, 37.24))
178178
location = model.Location(name="here", description="and there", location=point, encoding_type='application/geo+json')

0 commit comments

Comments
 (0)