Posts: 1
Joined: Fri Aug 25, 2017 4:51 pm


Fri Aug 25, 2017 5:03 pm

I need to send every xx min a command to users/devices.

This script seems to get the job:

Code: Select all

// Script for Timer actions.

var users = directory.getUsers();

for (var i = 0; i < users.length; i++) {
  var user = users[i];
  commands.sendToUser(, 'TRC');
  log("Send TRC to User:";
But when a command is pending on one of users, it block the script and on APP console tells:
Could not evaluate Click script in TRC-PTI?(ID=1). Command is already executing. ITEM Twig.TRC IN:_SCRIPTAP.....

How can I get pending commands by user or avoid this blocking event?

Return to “GpsGate for Developers”