Skip to content

Define resource path on service group and use it to send measurements #590

Open
@thinkingmik

Description

@thinkingmik

Hi,

I'm using docker image fiware/iotagent-ul:1.25.0 and I have a problem with iota service group and sending device measurement to it.

This is my service group (note the resource attribute set as /iot/json/mydevice):

{
    "services": [
        {
            "apikey": "52t4z7url7",
            "cbroker": "http://orion:23626",
            "entity_type": "Device",
            "resource": "/iot/json/mydevice"
        }
   ]
}

If I send a measurement like:

POST /iot/json/mydevice?k=52t4z7url7&i=001
Host: iotagent:23632
Content-Type: text/plain

temp|14

The endpoint respond with 404. It only works with default resource path /iot/d.
Why I can't be able to send measurement to my custom resource path /iot/json/mydevice?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions