You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,13 +136,13 @@ module is set to demjson3 per default. The backend can be modified by calling
136
136
137
137
Since version 2.0.0 this client supports general OData models hosted by FROST servers with active OData plugin.
138
138
139
-
For this purpose the client provides a command line interface for generating a service configuration 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 it. It is called like this:
139
+
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:
The generator tries the OData 4.01 endpoint of the FROST server in use first and falls back to the OData 4.0 if the other one is not available. If even the latter is not available the generator fails.
144
144
145
-
In order to use the generated service configuration module, it needs to be imported in the source code. The corresponding service needs to be created with paramter `config` instead of `url`. In case the FROST server in use contains the SensorThings data model, the following two programs are equivalent:
145
+
In order to use the generated module, it needs to be imported in the source code. The corresponding service needs to be created with parameter `model` instead of `url`. In case the FROST server in use contains the SensorThings data model, the following two programs are equivalent:
146
146
147
147
Variant I:
148
148
```
@@ -164,11 +164,10 @@ service.create(thing)
164
164
Variant II:
165
165
```
166
166
import frost_sta_client as fsc
167
-
import my_service_configuration
167
+
import my_service_module as mdl
168
168
from geojson import Point
169
169
170
-
service = fsc.SensorThingsService(config=my_service_configuration)
0 commit comments