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

        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 19:50|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 19:50|CREATED monitor | # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 19:53|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 19:53|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 20:02|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 20:02|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        Hide
        josegato Jose Gato Luis added a comment -

        Answered but not more feedback from the reporter.

        Show
        josegato Jose Gato Luis added a comment - Answered but not more feedback from the reporter.

          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: