Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mihini-dev] Mihini Table Data Arrangement

Hi Laurent

                I have created the table as per following

local asset = airvantage.newasset("house")
local tab1 = asset:newTable("bedroom", {"temperature", "humidity", "timestamp"}, "ram", "now")

tab1 :pushRow{ temperature=29.2, humidity=109.34, timestamp=os.date() }

when i push the row i get the output in syslog as
 

EMP-DEBUG: [->RCV] [CMD] #1 TableRow {"row":{"humidity":109.34,"temperature":29.2,"timestamp":"Mon Nov 17 19:23:19 2014"},"table":"ram:house.bedroom-humidity-temperature-timestamp.tbl"}

        My Question is as per the syslog output why humidity value is coming in first column and
temperature in second column even though my table creation having first column is temperature
second column is humidity and third one is timestamp.

     Please explain me in what order table will be arranged and how pushrow will send data.

Back to the top