Your comments

Добрый день.

Только преобразованием в строку.

Добрый день.

Сохранить можно строку или число. Получить значение:

var Logic_4 = IR.GetVariable("Server.Tags.Logic_4");

Hello.

What modules are used? What is the i3 lite version? Check that all modules are updated.

Hello.

MQTT supports UTF-8 string in topics. Are you using the MQTT driver in iRidium?

Hello.

Tags store strings or numbers. You can save them to the system database. This setting should be defined for tags in the project before uploading it to the server. Then to transfer the historical data to another server, you just need to copy IridiumStorage.db there.

Hello.

The iRidium server for Windows cannot start as a service and it does not have a watchdog. You can monitor the presence of the imagename from the operating system, for example:

tasklist /fi "imagename eq iRidiumServer32.exe"

If imagename is found, then do nothing, otherwise start iRidiumServer32.exe. However, the more correct way is to find out the cause of the crash.