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

[fiware-stackoverflow] Can't store attribute's value with properly type using IoTAgentUL

    Details

      Description

      Created question in FIWARE Q/A platform on 05-07-2017 at 16:07
      Please, ANSWER this question AT https://stackoverflow.com/questions/44928815/cant-store-attributes-value-with-properly-type-using-iotagentul

      Question:
      Can't store attribute's value with properly type using IoTAgentUL

      Description:
      I need to store the values of devices' attributes with the right type in OrionCB's MongoDB.

      As I was unable to perform that I dived into the code and found that IoTAgentUL (as well as IoTAgentJSON) uses OrionCB's API v1 instead of API v2.

      As I can see API v1's updateContext sends data to MongoDB without it's type, so every measure is stored as text.

      In the other hand I found that API v2's update entity send data to MongoDB with it's type. It produces that I can store attribute's values with it's type which benefits me when manipulating data (i.e. creating indexes, sorting, etc).

      My question is if is there any workaround to solve this using the current implementations of IoT Agents.

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        HD-Enabler IDAS [ 10884 ]
        HD-Chapter IoT [ 10839 ]
        josegato Jose Gato Luis made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        josegato Jose Gato Luis made changes -
        Status Impeded [ 10004 ] In Progress [ 3 ]
        josegato Jose Gato Luis made changes -
        Status In Progress [ 3 ] Impeded [ 10004 ]
        josegato Jose Gato Luis made changes -
        Resolution Done [ 10000 ]
        Status Closed [ 6 ] In Progress [ 3 ]
        josegato Jose Gato Luis made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        Assignee Jose Gato Luis [ josegato ]
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        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:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: