-
Notifications
You must be signed in to change notification settings - Fork 91
Add mixed mode #947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mixed mode #947
Changes from all commits
d2fd301
4ed3e78
b0317b4
9ad9268
b0c8356
40b5256
52cb089
e142485
1a4d4fd
d75cf7e
3dee480
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ These are the parameters that can be configured in the global section: | |
} | ||
``` | ||
|
||
- If you want to use NGSI v2: | ||
- If you want to use **NGSI v2**: | ||
|
||
```javascript | ||
{ | ||
|
@@ -30,7 +30,7 @@ These are the parameters that can be configured in the global section: | |
} | ||
``` | ||
|
||
- If you want to use NGSI-LD (experimental): | ||
- If you want to use **NGSI-LD** (experimental): | ||
|
||
```javascript | ||
{ | ||
|
@@ -43,7 +43,22 @@ These are the parameters that can be configured in the global section: | |
|
||
Where `http://context.json-ld` is the location of the NGSI-LD `@context` element which provides additional information | ||
allowing the computer to interpret the rest of the data with more clarity and depth. Read the | ||
[JSON-LD specification](https://w3c.github.io/json-ld-syntax/#the-context) for more informtaion. | ||
[JSON-LD specification](https://w3c.github.io/json-ld-syntax/#the-context) for more information. | ||
|
||
- If you want to support a "mixed" mode with both **NGSI-v2** and **NGSI-LD** (experimental): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest to add an explanation of what mixed mode means. For instance:
It is just an example, it can be improved, of course. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed 52cb089 |
||
|
||
```javascript | ||
{ | ||
host: '192.168.56.101', | ||
port: '1026', | ||
ngsiVersion: 'mixed', | ||
jsonLdContext: 'http://context.json-ld' // or ['http://context1.json-ld','http://context2.json-ld'] if you need more than one | ||
} | ||
``` | ||
|
||
Under mixed mode, **NGSI v2** payloads are used for context broker communications by default, but this payload may also be switched | ||
to **NGSI LD** at service group or device provisioning time using the `ngsiVersion` field in the provisioning API. | ||
The `ngsiVersion` field switch may be added at either group or device level, with the device level overriding the group setting. | ||
|
||
- **server**: configuration used to create the Context Server (port where the IoT Agent will be listening as a Context | ||
Provider and base root to prefix all the paths). The `port` attribute is required. If no `baseRoot` attribute is | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to add the mixed mode to the NGSI-LD feature sublist in CHANGES_NEXT_RELEASE. I mean:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed 3dee480