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

[fiware-stackoverflow] Device not sending data to LWM2M Agent

    Details

      Description

      Created question in FIWARE Q/A platform on 24-09-2018 at 13:09
      Please, ANSWER this question AT https://stackoverflow.com/questions/52478674/device-not-sending-data-to-lwm2m-agent

      Question:
      Device not sending data to LWM2M Agent

      Description:
      I'm having trouble with LWM2M device sending data to the IOT Agent. The device connects to the server successfully.

      However, it seems the device isn't sending data to the IOT Agent, with no helpful tip, sending the command:
      *

      curl --request POST \
      --header 'Content-Type: text/plain' \
      --header 'Fiware-Service: workshop' \
      --header 'Fiware-ServicePath: /' \
      --header 'X-Auth-Token: NULL' \
      --data 't|30' \
      -v \
      'http://localhost:4041/iot/d?k=workshop-devices&i=robot1'

      *

      Returns the message:
      *

      • About to connect() to localhost port 4041 (#0)
      • Trying 127.0.0.1...
      • Connected to localhost (127.0.0.1) port 4041 (#0)
        > POST /iot/d?k=workshop-devices&i=robot1 HTTP/1.1
        > User-Agent: curl/7.29.0
        > Host: localhost:4041
        > Accept: /
        > Content-Type: text/plain
        > Fiware-Service: workshop
        > Fiware-ServicePath: /
        > X-Auth-Token: NULL
        > Content-Length: 4
        >
      • upload completely sent off: 4 out of 4 bytes
        < HTTP/1.1 404 Not Found
        < X-Powered-By: Express
        < Fiware-Correlator: 32da2092-8032-427a-86f2-19ae81a1ab47
        < Content-Security-Policy: default-src 'self'
        < X-Content-Type-Options: nosniff
        < Content-Type: text/html; charset=utf-8
        < Content-Length: 145
        < Date: Mon, 24 Sep 2018 10:30:25 GMT
        < Connection: keep-alive
        <
        <!DOCTYPE html>
        <html lang="en">
        <head>
        <meta charset="utf-8">
        <title>Error</title>
        </head>
        <body>
        <pre>Cannot POST /iot/d</pre>
        </body>
        </html>
      • Connection #0 to host localhost left intact

      Not sure if anyone understand what's going here please.

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        HD-Enabler IDAS [ 10884 ]
        Description
        Created question in FIWARE Q/A platform on 24-09-2018 at 13:09
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/52478674/device-not-sending-data-to-lwm2m-agent


        +Question:+
        Device not sending data to LWM2M Agent

        +Description:+
        I'm having trouble with LWM2M device sending data to the IOT Agent. The device connects to the server successfully.

        However, it seems the device isn't sending data to the IOT Agent, with no helpful tip, sending the command:
        *

        curl --request POST \
           --header 'Content-Type: text/plain' \
           --header 'Fiware-Service: workshop' \
           --header 'Fiware-ServicePath: /' \
           --header 'X-Auth-Token: NULL' \
           --data 't|30' \
           -v \
             'http://localhost:4041/iot/d?k=workshop-devices&amp;i=robot1&#39;


        *

        Returns the message:
        *

        * About to connect() to localhost port 4041 (#0)
        * Trying 127.0.0.1...
        * Connected to localhost (127.0.0.1) port 4041 (#0)
        &gt; POST /iot/d?k=workshop-devices&amp;i=robot1 HTTP/1.1
        &gt; User-Agent: curl/7.29.0
        &gt; Host: localhost:4041
        &gt; Accept: */*
        &gt; Content-Type: text/plain
        &gt; Fiware-Service: workshop
        &gt; Fiware-ServicePath: /
        &gt; X-Auth-Token: NULL
        &gt; Content-Length: 4
        &gt;
        * upload completely sent off: 4 out of 4 bytes
        &lt; HTTP/1.1 404 Not Found
        &lt; X-Powered-By: Express
        &lt; Fiware-Correlator: 32da2092-8032-427a-86f2-19ae81a1ab47
        &lt; Content-Security-Policy: default-src 'self'
        &lt; X-Content-Type-Options: nosniff
        &lt; Content-Type: text/html; charset=utf-8
        &lt; Content-Length: 145
        &lt; Date: Mon, 24 Sep 2018 10:30:25 GMT
        &lt; Connection: keep-alive
        &lt;
        &lt;!DOCTYPE html&gt;
        &lt;html lang="en"&gt;
        &lt;head&gt;
        &lt;meta charset="utf-8"&gt;
        &lt;title&gt;Error&lt;/title&gt;
        &lt;/head&gt;
        &lt;body&gt;
        &lt;pre&gt;Cannot POST /iot/d&lt;/pre&gt;
        &lt;/body&gt;
        &lt;/html&gt;
        * Connection #0 to host localhost left intact


        Not sure if anyone understand what's going here please.
        Created question in FIWARE Q/A platform on 24-09-2018 at 13:09
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/52478674/device-not-sending-data-to-lwm2m-agent


        +Question:+
        Device not sending data to LWM2M Agent

        +Description:+
        I'm having trouble with LWM2M device sending data to the IOT Agent. The device connects to the server successfully.

        However, it seems the device isn't sending data to the IOT Agent, with no helpful tip, sending the command:
        *

        curl --request POST \
           --header 'Content-Type: text/plain' \
           --header 'Fiware-Service: workshop' \
           --header 'Fiware-ServicePath: /' \
           --header 'X-Auth-Token: NULL' \
           --data 't|30' \
           -v \
             'http://localhost:4041/iot/d?k=workshop-devices&amp;i=robot1&#39;


        *

        Returns the message:
        *

        * About to connect() to localhost port 4041 (#0)
        * Trying 127.0.0.1...
        * Connected to localhost (127.0.0.1) port 4041 (#0)
        &gt; POST /iot/d?k=workshop-devices&amp;i=robot1 HTTP/1.1
        &gt; User-Agent: curl/7.29.0
        &gt; Host: localhost:4041
        &gt; Accept: */*
        &gt; Content-Type: text/plain
        &gt; Fiware-Service: workshop
        &gt; Fiware-ServicePath: /
        &gt; X-Auth-Token: NULL
        &gt; Content-Length: 4
        &gt;
        * upload completely sent off: 4 out of 4 bytes
        &lt; HTTP/1.1 404 Not Found
        &lt; X-Powered-By: Express
        &lt; Fiware-Correlator: 32da2092-8032-427a-86f2-19ae81a1ab47
        &lt; Content-Security-Policy: default-src 'self'
        &lt; X-Content-Type-Options: nosniff
        &lt; Content-Type: text/html; charset=utf-8
        &lt; Content-Length: 145
        &lt; Date: Mon, 24 Sep 2018 10:30:25 GMT
        &lt; Connection: keep-alive
        &lt;
        &lt;!DOCTYPE html&gt;
        &lt;html lang="en"&gt;
        &lt;head&gt;
        &lt;meta charset="utf-8"&gt;
        &lt;title&gt;Error&lt;/title&gt;
        &lt;/head&gt;
        &lt;body&gt;
        &lt;pre&gt;Cannot POST /iot/d&lt;/pre&gt;
        &lt;/body&gt;
        &lt;/html&gt;
        * Connection #0 to host localhost left intact


        Not sure if anyone understand what's going here please.
        josegato Jose Gato Luis made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        veronika Veronika Vlnkova made changes -
        Assignee Jose Gato Luis [ josegato ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: