1

Get Registered events and delete from them

Topic: Get Registered events and delete from them

Hello,

I am using notification action "register event for unit" to register some messages in unit log.
now I am developing an app to get these messages and delete some of them.

how can I achieve this in remote API.

please advise

Murtadha Fadhil
Integrated Solutions
Iraq
www.is.iq
2

Get Registered events and delete from them

Re: Get Registered events and delete from them

Murtadha, refer please to docs:
https://sdk.wialon.com/wiki/en/sidebar/ … t_messages
https://sdk.wialon.com/wiki/en/sidebar/ … s/messages
https://sdk.wialon.com/wiki/en/sidebar/ … t/messages

Head of Wialon Local Department
Gurtam
3

Get Registered events and delete from them

Re: Get Registered events and delete from them

I also need an example for geofence

4

Get Registered events and delete from them

Re: Get Registered events and delete from them

singleroot, give more details about example you need concerning geofences.

Head of Wialon Local Department
Gurtam
5

Get Registered events and delete from them

Re: Get Registered events and delete from them

Hello,

I try to get the last event recorded, but with the request below, I have several events but not included the last or current event (Parking or Trip).

Have you an idea please ?

Thank you for your help,
Tahar

var to = sess.getServerTime()
var from = to - 3600*12;

interval = [from, to];

var params = {
        itemId: id,
        eventType: "trips",
        ivalType: 1,
        ivalFrom: interval[0],
        ivalTo: interval[1]
    };

wialon.core.Remote.getInstance().remoteCall("unit/get_events", params, function(code, events) {
        if (code || !events)
            return;

        var resultTrips = events.trips;
}