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

        backlogmanager Backlog Manager created issue -
        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
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        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
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        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
        fla Fernando Lopez made changes -
        Assignee Jose Gato Luis [ josegato ]
        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.
        josegato Jose Gato Luis made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        josegato Jose Gato Luis made changes -
        Resolution Done [ 10000 ]
        Status Closed [ 6 ] In Progress [ 3 ]
        josegato Jose Gato Luis made changes -
        Status In Progress [ 3 ] Impeded [ 10004 ]
        josegato Jose Gato Luis made changes -
        Status Impeded [ 10004 ] In Progress [ 3 ]
        josegato Jose Gato Luis made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        HD-Enabler IDAS [ 10884 ]
        HD-Chapter IoT [ 10839 ]
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        3m 14s 1 Backlog Manager 12/Jan/18 7:53 PM
        In Progress In Progress Answered Answered
        8m 55s 1 Backlog Manager 12/Jan/18 8:02 PM
        Answered Answered Closed Closed
        4d 13h 40m 1 Jose Gato Luis 17/Jan/18 9:42 AM
        Closed Closed In Progress In Progress
        49s 1 Jose Gato Luis 17/Jan/18 9:43 AM
        In Progress In Progress Impeded Impeded
        5s 1 Jose Gato Luis 17/Jan/18 9:43 AM
        Impeded Impeded In Progress In Progress
        2s 1 Jose Gato Luis 17/Jan/18 9:43 AM
        In Progress In Progress Closed Closed
        12s 1 Jose Gato Luis 17/Jan/18 9:43 AM

          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: