Skip to main content

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

Hi,

The order of the columns is not important.
Every variable point will be sent to the server using M3DA procotol, and the variable name (i.e. the resulting M3DA path) is what matters.
The log you see comes from the underlying library responsible for transferring your data from your application to the mihini agent, and this log should not worry you.

Last thing, you should use os.time() instead of os.date() for the timestamp variable because it should be an integer representing Unix/Epoch time in seconds.

Regards,

________________________________________
De : mihini-dev-bounces@xxxxxxxxxxx [mihini-dev-bounces@xxxxxxxxxxx] de la part de satishbaganal iit [satishbaganal@xxxxxxxxx]
Date d'envoi : mardi 18 novembre 2014 06:57
À : mihini-dev@xxxxxxxxxxx
Objet : [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