1

Getting unit messages (pop up alerts)

Тема: Getting unit messages (pop up alerts)

I am able to get all available events from units


http://hst-api.wialon.com/wialon/ajax.html?params={'spec':[{'type':'col','data':[508203,11790037,11790040,11606835,11720764,11687531,11606782],'flags':4294967295,'mode':0}]}&svc=core/update_data_flags&sid=aa31403810a11c3135d4a022096460ff

But I am not getting any alerts messages.

What flags should be set to get all events and popup messages?

Nishad Hussain Kaippally
Implementation Specialist, Middle East, Gurtam

"Computer science is no more about computers than astronomy is about telescopes."
2

Getting unit messages (pop up alerts)

Re: Getting unit messages (pop up alerts)

Dear  Nishad, wialon doesn't send any alert or popup messages. After getting an answer on your request  you should analyse it, and decide is it valid or alert must be shown. The same deal we have with popups. You analyse the result of avl_events and show or don't show popup.

Development Department
Gurtam
3

Getting unit messages (pop up alerts)

Re: Getting unit messages (pop up alerts)

I am now using the following query to get all available events from each unit

svc = core/update_data_flags


params= {'spec':[{'type':'col','data':[571714,11750160,11689962,11744875,11713311,11725919,11737849,11708287,11715669,11725999,11725855,913729,7325290,534828,11712610,11716374,11697887,11689902,11716596,11808777,11697338,11750079,11697833],'flags':4294967295,'mode':1}]}


but I am not able to get any events.

Nishad Hussain Kaippally
Implementation Specialist, Middle East, Gurtam

"Computer science is no more about computers than astronomy is about telescopes."
4

Getting unit messages (pop up alerts)

Re: Getting unit messages (pop up alerts)

I also tried first to remove all flags

http://hst-api.wialon.com/wialon/ajax.html?params={"spec":[{"type":"type","data":"avl_unit","flags":4294967295,"mode":2}]}&svc=core/update_data_flags&sid=139e95bb4e18f1bfa591a4ca3cdf2286

and then tried setting new flags to get all events from all units


http://hst-api.wialon.com/wialon/ajax.html?params={"spec":[{"type":"type","data":"avl_unit","flags":4294967295,"mode":1}]}&svc=core/update_data_flags&sid=139e95bb4e18f1bfa591a4ca3cdf2286

but I still get no events.

Nishad Hussain Kaippally
Implementation Specialist, Middle East, Gurtam

"Computer science is no more about computers than astronomy is about telescopes."
5

Getting unit messages (pop up alerts)

Re: Getting unit messages (pop up alerts)

Can sombody help?

Nishad Hussain Kaippally
Implementation Specialist, Middle East, Gurtam

"Computer science is no more about computers than astronomy is about telescopes."
6

Getting unit messages (pop up alerts)

Re: Getting unit messages (pop up alerts)

Please check out our Item events management sample. I beleive it can be helpful.

BTW, what programming language do you use? Did you try Wialon SDK JS?

7

Getting unit messages (pop up alerts)

Re: Getting unit messages (pop up alerts)

I am working wialon remote API

Nishad Hussain Kaippally
Implementation Specialist, Middle East, Gurtam

"Computer science is no more about computers than astronomy is about telescopes."