Wialon Sdk — [exclusive]
// 3. Trigger push notification via webhook const triggerNotification = (unitId, entered) => const message = entered ? Unit $unitId entered restricted zone : Unit $unitId exited safe zone ;
);
// 2. Subscribe to real-time unit position updates wialon.units.bind( position: true, sensors: ['speed', 'ignition'] , (unitId, data) => const inside = checkGeofence(unitId, data.position); if (insideChanged(unitId, inside)) triggerNotification(unitId, inside); wialon sdk


Deja tu comentario