[Backlogmanager] [FIWARE-JIRA] (HELP-17243) [fiware-stackoverflow] FIWARE - iotagent-node-lib support for ngsiVersion " ld"

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Mon Dec 28 13:03:00 CET 2020


     [ https://jira.fiware.org/browse/HELP-17243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez updated HELP-17243:
----------------------------------
    Status: In Progress  (was: Open)

> [fiware-stackoverflow] FIWARE - iotagent-node-lib support for ngsiVersion "ld"
> ----------------------------------------------------------------------------------------
>
>                 Key: HELP-17243
>                 URL: https://jira.fiware.org/browse/HELP-17243
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Backlog Manager
>              Labels: fiware, fiware-scorpio
>
> Created question in FIWARE Q/A platform on 16-12-2020 at 12:12
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/65322083/fiware-iotagent-node-lib-support-for-ngsiversion-ld
> +Question:+
> FIWARE - iotagent-node-lib support for ngsiVersion "ld"
> +Description:+
> I am trying to create an IoT Agent that uses NGSI-LD northbound to interact with an NGSI-LD Context Broker (Scorpio in this case)
> In the latest release of iotagent-node-lib (2.14.0) it looks like it only includes support for v1 and v2 interactions with a Context Broker, e.g. in the deviceService:
> function createInitialEntity(deviceData, newDevice, callback) {
>     if (config.checkNgsi2()) {
>         createInitialEntityNgsi2(deviceData, newDevice, callback);
>     } else {
>         createInitialEntityNgsi1(deviceData, newDevice, callback);
>     }
> }
> but in the master branch it looks like there is support for v1, v2, mixed mode and ngsi-ld, e.g:
> function init() {
>     switch (config.ngsiVersion()) {
>         case 'ld':
>             deviceHandler = require('./devices-NGSI-LD');
>             break;
>         case 'v2':
>             deviceHandler = require('./devices-NGSI-v2');
>             break;
>         case 'mixed':
>             deviceHandler = require('./devices-NGSI-mixed');
>             break;
>         default:
>             deviceHandler = require('./devices-NGSI-v1');
>     }
> }
> function createInitialEntity(deviceData, newDevice, callback) {
>     deviceHandler.createInitialEntity(deviceData, newDevice, callback);
> }
> Can you say when a release will include support for ngsi-ld interactions with context brokers? Thanks!



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy