Your comments

Thanks! That's very useful!!!

I wrote an http-driver that works like an http module in Node JS. We use it to exchange data between Iridium Clients and Iridium server as the standard mechanism feedback and commands is not always convenient for us. Also we use it to provide data exchange with other systems. So we can generate JSON that can be read by other services.


Example of a server in Iridium:

http.createServer(function (req, res) {
   res.writeHead(200, {'Content-Type' : 'text/plain'});
   res.write('Hello World!');
   res.end();
}).listen(8000);


Example of an http request in Iridium:

var options = {
    port: 8000,
    hostname: '127.0.0.1',
    path: '/',
    method: 'GET'
};
var req = http.request(options, function (res) {
    res.on('data', function (chunk) {
        IR.Log(chunk)
    });
    res.on('end', function () {
       IR.Log('end');
    });
});
req.end();



sorry, i didn't mention it: it's for the server.

I would suggest to use Windows task scheduler instead.

We tried to use NSSM in our projects. It worked but we found out there are couple of restrictions:

- you can't save information in a user sql database

- the logs are not saved




Ooooh!!! Alex, thank you! I thought it's PC to blame and  and it turned out the issue is so easy too solve! )))

а как на эту статью подписаться

Кейс: панель не может подключиться к серверу. IP адрес указан верно. Для диагностики подобный вещей хочется получить статус ошибки. Варианты: проблема с лицензией Iridium (два разных случая), IT-ки что-то перемудрили, не запущен сервер и т.д.