Saturday, March 21, 2015
Sample Configuration in Leshan. Through Sthana-core or Local Leshan
**************
\"edu.mit.media.funf.probe.builtin.SimpleLocationProbe\",\n\t \"@schedule\": {\"interval\": 60, \"duration\" : 10
- It shows that Client will try finding location probe using mobile hardware after each '60' secs.
- and only for first 10 secs, it will check.
then next call will be made after 60 secs (interval)
How to verify this:
- check in LogCat in Android Studio with filter like 'sthana' or 'funf'
- Register with Leshan and push configuration, check 'connect'/'reconnect'
Sample JSON configuration to Push for all registered clients:
{
"userPreferedCategorys":[
{
"name":"Thai",
"parentCategory":{
"name":"FOOD",
"id":1
},
"id":2
},
{
"name":"FOOD",
"id":1
}
],
"funfConfiguration":{
"pipelineConfigJson":"{\"@type\":\"edu.mit.media.funf.pipeline.BasicPipeline\",\n \"name\":\"default\",\n \"version\":1,\n \"data\": [\n\t {\"@type\": \"edu.mit.media.funf.probe.builtin.SimpleLocationProbe\",\n\t \"@schedule\": {\"interval\": 60, \"duration\" : 10, \"strict\": true}\n\t },\n\t {\"@type\": \"edu.mit.media.funf.probe.builtin.AndroidInfoProbe\"\n\t },\n\t {\"@type\": \"edu.mit.media.funf.probe.builtin.HardwareInfoProbe\"\n\t },\n\t {\"@type\": \"edu.mit.media.funf.probe.builtin.BluetoothBeaconProbe\",\n\t \"@schedule\": {\"interval\": 60, \"duration\" : 20, \"strict\": true},\n\t \"vendorConfig\": [{ \"uuid\" : \"bbbb2222-2222-2222-2222-222222222222\",\"major\":1, \"minor\":2, \"vendorName\": \"estemeto\",\"layout\": {\"m\": \"2-3+0215\",\"i\":[\"4-19\",\"20-21\",\"22-23\"],\"p\": \"24-24\",\"d\": []}}]\n\t }\n ]\n }"
}
}
*****************************************************
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment