0
Завершен
HDL Watchdog
This simple script make you able to see if the communication with HDL bus stopped.
In case of UDP broadcast connections it is not possible to see the online status of HDL IP module, so you have to look at the traffic from HDL, and if it is stopped for awhile you can show "Offline message".
See the example attached.
You can choose a time without traffic indicates the offline. It is 10 sec by default.
!HDL Online indicator.irpz
In case of UDP broadcast connections it is not possible to see the online status of HDL IP module, so you have to look at the traffic from HDL, and if it is stopped for awhile you can show "Offline message".
See the example attached.
You can choose a time without traffic indicates the offline. It is 10 sec by default.
!HDL Online indicator.irpz
Сервис поддержки клиентов работает на платформе UserEcho
I'm using this script in real project with Raspberry Pi server. But in the latest version of the Iridium server many errors have appeared (one after another):
After performing the garbage collection, it disappears for a while, but then appears again.
This is JS for i2 control only, not for server ;)
ok, but how check HDL is online on server?
Hello
Here is a server script
var id//global variable for timer
function offline()//function that start if hdl bus does not answer
{
IR.Log("hdl is ofline")
}
IR.AddListener(IR.EVENT_TAG_CHANGE, IR.GetDevice("HDL-BUS Pro Network (UDP)"), function(name,value)
{
IR.ClearInterval(id);//clear interval if hdl bus answer
id = IR.SetTimeout(10000, offline);//set new timer
});
I share the working decision. Today I tested it on a real server. Can someone else come in handy