Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-17243

[fiware-stackoverflow] FIWARE - iotagent-node-lib support for ngsiVersion "ld"

    Details

      Description

      Created question in FIWARE Q/A platform on 16-12-2020 at 12:12
      Please, ANSWER this question AT 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!

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2020-12-28 12:49|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2020-12-28 12:49|CREATED monitor | # answers= 1, accepted answer= False

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: