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

[fiware-stackoverflow] Can't add device via http on FIWARE-IoTAgent

    Details

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

      Description

      Created question in FIWARE Q/A platform on 15-09-2016 at 14:09
      Please, ANSWER this question AT http://stackoverflow.com/questions/39511158/cant-add-device-via-http-on-fiware-iotagent

      Question:
      Can't add device via http on FIWARE-IoTAgent

      Description:
      I'm learning about IoT and trying to use Fiware for a project and got stuck when trying run some commands while following the fiware-IoTAgent-Cplusplus deployment guide.

      I could successfully run:
      curl -X GET http://172.17.0.4:8080/iot/about

      Sending the above command I got the following result:
      Welcome to IoTAgents identifier:qa:8080 1.3.1 commit 124.g0b78609 in Sep 14 2016

      When I tried to run the following command it returns "pidfile not found [FAILED]", so I must have missed some configuration
      service iotagent start protocol

      Any other requests returns 'The request is not well formed':

      curl -X POST http://x.x.x.x:8080/iot/services \
      -i \
      -H "Content-Type: application/json" \
      -H "Fiware-Service: service2" \
      -H "Fiware-ServicePath: /srvpath2" \
      -d '{"services": [

      { "apikey": "apikey2", "token": "token2", "cbroker": "http://127.0.0.1:1026", "entity_type": "thing", "resource": "/iot/d" }

      ]}'

      Any ideas of what can be done?
      Thanks.

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mcp Miguel Carrillo made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        mcp Miguel Carrillo made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        mcp Miguel Carrillo made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        ralli Carlos Ralli Ucendo made changes -
        Assignee Carlos Ralli Ucendo [ ralli ] Miguel Carrillo [ mcp ]
        backlogmanager Backlog Manager made changes -
        Assignee Carlos Ralli Ucendo [ ralli ]
        backlogmanager Backlog Manager made changes -
        HD-Chapter Unknown [ 10845 ] IoT [ 10839 ]
        mev Manuel Escriche made changes -
        HD-Enabler Unknown [ 10910 ] IDAS [ 10884 ]
        backlogmanager Backlog Manager made changes -
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            mcp Miguel Carrillo
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: