Skip to main content

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

Hi,


1.: 
There is nothing to do to make mihini agent open tcp socket: every data pushed to the agent using pushdata/pushrow will be sent to the M3DA server set in agent parameter "server.url".
The data will be pushed to the server when the data policy set in pushdata/newTable triggers: example: when using "now" policy, the data will automatically be sent 5 seconds later after the push.

The default server configuration is a M3DA server already running at eclipse.org (server.url = "tcp://m2m.eclipse.org:44900")
The doc of this server can be found at:
https://github.com/SierraWireless/m3da-server
(If you want to host your own instance of m3da-server, compilation instructions are also provided).

For testing purpose, Mihini also provides a small M3DA server written in Lua, its dependencies are provided in Mihini git repo. If you prefer this option, let me know and I'll give the instructions to use this test server instead).

2.You have to create a data policy that triggers every minute:
in agent shell:
agent.config.data.policy.minute   = { latency = 60 }
reboot the agent and then use "minute" as policy name in push APIs.

I think reading the follow doc should help you understanding how to use pushdata APIs:
http://download.eclipse.org/mihini/org.eclipse.mihini-incubation-0.9/Docs/Modules_Documentation/agent_connector_libraries/Racon_Lua_library.html
("airvantage" is an alternate name of "racon", its the same library).


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:38
À : mihini-dev@xxxxxxxxxxx
Objet : [mihini-dev] Mihini Push Data

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



Back to the top