C-Gate dbget command

Discussion in 'C-Gate Developers' started by OxleyDave, Jul 27, 2012.

  1. OxleyDave

    OxleyDave

    Joined:
    Jan 13, 2007
    Messages:
    17
    Likes Received:
    2
    I've upgraded from C-Gate 2.7.0 to 2.9.0 and my software is not currently working due to a few comparabilities One is that the dbget command has changed.

    If I run:
    dbget //HOME/254/56/0/TagName

    With 2.7.0 I would get the response:
    342 //HOME/254/56/0/TagName=Master Bedroom Main

    But with 2.9.0 I get the response:

    342-254/56/0/TagName/OID=5dade120-d84f-102a-9a2f-c5cb3b80259d
    342-254/56/0/TagName/TagName=Master Bedroom Main
    342-254/56/0/TagName/Address=0
    342-254/56/0/TagName/Description=null
    342-254/56/0/TagName/Display=null
    342-254/56/0/TagName/LocationReference[0]={}
    342-254/56/0/TagName/CustomProperties=null
    342-254/56/0/TagName/Area=null
    342-254/56/0/TagName/Phantom=null
    342-254/56/0/TagName/Snapshot=null
    342-254/56/0/TagName/Level[0]={}
    342 254/56/0/TagName/TagsDLT=null

    Firstly the output appears to be bugged as it includes TagName in every line. But is there anyway to request just the TagName with 2.9.0 or do I have to process each line of the response now?

    Cheers,
    Dave.
     
    OxleyDave, Jul 27, 2012
    #1
  2. OxleyDave

    OxleyDave

    Joined:
    Jan 13, 2007
    Messages:
    17
    Likes Received:
    2
    However it only appears to be like this for groups.

    For applications it works as previously:
    dbget //HOME/254/56/TagName
    342 254/56/TagName=Lighting

    As it also does for networks:
    dbget //HOME/254/TagName
    342 254/TagName=Local
     
    OxleyDave, Jul 27, 2012
    #2
  3. OxleyDave

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    766
    Likes Received:
    20
    Location:
    Adelaide
    That does look smelly, I'll look into that on Monday.

    Thanks for reporting it!
     
    daniel, Jul 28, 2012
    #3
  4. OxleyDave

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    766
    Likes Received:
    20
    Location:
    Adelaide
    Thanks OxleyDave, that will definitely be fixed in the next release. #23958

    Unfortunately I can't say right now when that will be. Sorry about the inconvenience :(
     
    Last edited by a moderator: Jul 31, 2012
    daniel, Jul 31, 2012
    #4
  5. OxleyDave

    OxleyDave

    Joined:
    Jan 13, 2007
    Messages:
    17
    Likes Received:
    2
    No problem, I've coded round it for the time being ;)
     
    OxleyDave, Aug 3, 2012
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.