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

[fiware-stackoverflow] IoT Agent provisioning

    Details

    • Type: Monitor
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FIWARE-TECH-HELP
    • Labels:

      Description

      Created question in FIWARE Q/A platform on 09-04-2019 at 14:04
      Please, ANSWER this question AT https://stackoverflow.com/questions/55593263/iot-agent-provisioning

      Question:
      IoT Agent provisioning

      Description:
      I'm using these provisioning for service and device in my IoT Agent.

      {
      "services":[

      { "resource":"/iot/d", "apikey":"1234", "type":"multiSensor" }

      ]
      }

      {
      "devices":[
      {
      "device_id":"myDeviceId",
      "entity_name":"LivingRoomSensor",
      "entity_type":"multiSensor",
      "attributes":[

      { "name":"a", "type":"celsius" }

      ,

      { "name":"b", "type":"degrees" }

      ]
      }
      ]
      }

      and I noticed that the attribute "type" in services can be also named "entity_type" and it must be equals to "entity_type" of devices. If these attributes are not equals I've this error:

      DEVICE_GROUP_NOT_FOUND","message":"Couldn\t find device group","code":404} in get group device

      Anyway the IoT Agent works. Can I use only device provisioning in my IoT Agent?

        Activity

        backlogmanager Backlog Manager created issue -
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        fla Fernando Lopez made changes -
        HD-Enabler IDAS [ 10884 ]
        Description
        Created question in FIWARE Q/A platform on 09-04-2019 at 14:04
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/55593263/iot-agent-provisioning


        +Question:+
        IoT Agent provisioning

        +Description:+
        I'm using these provisioning for service and device in my IoT Agent.

        {
           "services":[
              {
                 "resource":"/iot/d",
                 "apikey":"1234",
                 "type":"multiSensor"
              }
           ]
        }

        {
           "devices":[
              {
                 "device_id":"myDeviceId",
                 "entity_name":"LivingRoomSensor",
                 "entity_type":"multiSensor",
                 "attributes":[
                    {
                       "name":"a",
                       "type":"celsius"
                    },
                    {
                       "name":"b",
                       "type":"degrees"
                    }
                 ]
              }
           ]
        }


        and I noticed that the attribute "type" in services can be also named "entity_type" and it must be equals to "entity_type" of devices. If these attributes are not equals I've this error:

        DEVICE_GROUP_NOT_FOUND","message":"Couldn\t find device group","code":404} in get group device

        Anyway the IoT Agent works. Can I use only device provisioning in my IoT Agent?
        Created question in FIWARE Q/A platform on 09-04-2019 at 14:04
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/55593263/iot-agent-provisioning


        +Question:+
        IoT Agent provisioning

        +Description:+
        I'm using these provisioning for service and device in my IoT Agent.

        {
           "services":[
              {
                 "resource":"/iot/d",
                 "apikey":"1234",
                 "type":"multiSensor"
              }
           ]
        }

        {
           "devices":[
              {
                 "device_id":"myDeviceId",
                 "entity_name":"LivingRoomSensor",
                 "entity_type":"multiSensor",
                 "attributes":[
                    {
                       "name":"a",
                       "type":"celsius"
                    },
                    {
                       "name":"b",
                       "type":"degrees"
                    }
                 ]
              }
           ]
        }


        and I noticed that the attribute "type" in services can be also named "entity_type" and it must be equals to "entity_type" of devices. If these attributes are not equals I've this error:

        DEVICE_GROUP_NOT_FOUND","message":"Couldn\t find device group","code":404} in get group device

        Anyway the IoT Agent works. Can I use only device provisioning in my IoT Agent?
        fla Fernando Lopez made changes -
        Assignee Fermín Galán [ fermin ]

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: