Your comments

Hello.

Iridium uses the ECMAScript Edition 3 specification. The indexOf method is added to work with arrays only in ECMAScript 5.1 specification (ECMA-262).

You can use the following code to access the array by index:

var array = ['hello', 'send', 'test', 65535];
var index;
for (index = 0;
index < array.length;
++index)
{
IR.Log(index + ": " + array[index]);
}

var first = array[0]; // the first element of the array

IR.Log("First: " + first);

Hello.

1) Install, configure and start NFS server on another host.

2) Create or select a directory on the UMC to mount the directory using the NFS Protocol.

3) At the UMC, run the command:

mount -o port=2049,nolock,proto=tcp 192.168.0.121:/share /export


Instead of "192.168.0.121", specify the address of your NFS server. Instead of "share", enter the name of the directory on your NFS server. Instead of "export", specify the directory name on your UMC. After the command at the mount point "export"will be a remote directory"share".


Attention! UMC was not designed for such work and was not tested. Use at your own risk.

Hello.

Example:

IR.GetPage ("Page 1").GetItem ("Item 1").ScrollEnabled = 0;

Hello.

In iRidium Studio, you can only choose to save values to the system database. To save values to another database, you need to use JavaScript.

Добрый день.

Доступен только вывод в лог. Лог для версии pro доступен в веб-интерфейсе сервера. Можно настроить Remote Debug, если по какой-то причине нет возможности читать логи с сервера.

Значение переменной можно увидеть в логе через IR.Log(). Если запрос к БД не выполнен по какой-то причине (допущена ошибка в запросе), то в лог пишется об этом, но только общая информация. Других инструментов нет.

Hello.

The argument can be a substring. If you have an array, convert it to string.

Hello.

Example of using the methodindexOf():

var str = 'Быть или не быть, вот в чём вопрос.';
var count = 0;
var pos = str.indexOf('в');

while (pos !== -1) {
count++;
pos = str.indexOf('в', pos + 1);
}

IR.Log(count); // 3

Hello.

MQTT in iRidium is a native driver. The license is the same as for the Custom AV driver.

var systembase = IR.GetDatabase();

var result = systembase.Request('DELETE FROM INTEGER_TAG_HISTORY WHERE VALUE = 0;');

//The system database is read-only. Therefore, this code may not work in future releases.

DELETE FROM table_name WHERE VALUE = 0;