Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mihini-dev] mihini-dev Digest, Vol 15, Issue 2

HI Laurent
                Thanks for you guidance i am clear about the table creation
and please guide me how to configure agent to use tcp socket to push
data and how to set the agent to pushdata on every minute bases.

On Fri, Nov 14, 2014 at 10:30 PM, <mihini-dev-request@xxxxxxxxxxx> wrote:
Send mihini-dev mailing list submissions to
        mihini-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://dev.eclipse.org/mailman/listinfo/mihini-dev
or, via email, send a message with subject or body 'help' to
        mihini-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
        mihini-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mihini-dev digest..."


Today's Topics:

   1. Mhiini Table Creation (satishbaganal iit)
   2. RE :  Mhiini Table Creation (Laurent Barthelemy)


----------------------------------------------------------------------

Message: 1
Date: Fri, 14 Nov 2014 19:36:16 +0530
From: satishbaganal iit <satishbaganal@xxxxxxxxx>
To: mihini-dev@xxxxxxxxxxx
Subject: [mihini-dev] Mhiini Table Creation
Message-ID:
        <CACMr8KoyHRsnxyOJ7Y6YjAST=m4TRCB7_z5dYm_fCNJr-fX-Wg@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

*Hi Guys*



*    Can You please explain me in creation of new table
"airvantage.table.newTable(path,columns,storage,sendPolicy)" what is the
 "path" variable refers is it path to create a table or just a name.*


*And is it possible to send the created table or pushdata using TCP socket
if*
*yes please guide me how to use the tcp socket to send created table.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/mihini-dev/attachments/20141114/dc69d7d5/attachment.html>

------------------------------

Message: 2
Date: Fri, 14 Nov 2014 06:52:30 -0800
From: Laurent Barthelemy <lbarthelemy@xxxxxxxxxxxxxxxxxx>
To: "satishsat@xxxxxxxxx" <satishsat@xxxxxxxxx>, "Mihini project
        developer       discussions" <mihini-dev@xxxxxxxxxxx>
Subject: [mihini-dev] RE :  Mhiini Table Creation
Message-ID:
        <9287D1909D3EEA4E92505D48604887E90114AB0C4557@carmd-exchmb01.sierrawireless.local>

Content-Type: text/plain; charset="iso-8859-1"

Hi,

The path in newTable API is a string used to structure the data to be sent to the server (with sub levels etc).
This path comes from the underlying IoT/M2M protocol used by Mihini: M3DA, you can have a look at http://wiki.eclipse.org/Mihini/M3DA_Specification to have more details on the protocol.

For example, if your asset is called "house"
    local asset = airvantage.newasset("house"),
your table could be called "bedroom" and contains several variables:
    local tab1 = asset:newTable("bedroom", {"temperature", "humidity", "timestamp"}, "file", "now")
(With this example, the full path of the variable "temperature" is "house.bedroom.temperature": the separator for those paths is "." (dot))


Regarding your question about TCP socket, one of the main goal of using Mihini agent API (pushdata / table) is that the agent is responsible to send the data through a socket to a server.
Once you've called pushdata/table.pushRow APIs, the agent stores the data and is responsible for sending your data according to the data policy specified ("now" in my previous example, meaning  "a couple of seconds after the data has been pushed").

Let me know if this clearer for you.

Regards,

Laurent.

________________________________________
De : mihini-dev-bounces@xxxxxxxxxxx [mihini-dev-bounces@xxxxxxxxxxx] de la part de satishbaganal iit [satishbaganal@xxxxxxxxx]
Date d'envoi : vendredi 14 novembre 2014 15:06
? : mihini-dev@xxxxxxxxxxx
Objet : [mihini-dev] Mhiini Table Creation

Hi Guys

    Can You please explain me in creation of new table
"airvantage.table.newTable(path,columns,storage,sendPolicy)" what is the
 "path" variable refers is it path to create a table or just a name.

And is it possible to send the created table or pushdata using TCP socket if
yes please guide me how to use the tcp socket to send created table.


------------------------------

_______________________________________________
mihini-dev mailing list
mihini-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mihini-dev

End of mihini-dev Digest, Vol 15, Issue 2
*****************************************


Back to the top