henry-spanka / node-red-contrib-hikvision

Hikvision API for Node Red
MIT License
10 stars 1 forks source link

reconnect/unreachable cameras crashes node-red #17

Open ozett opened 4 years ago

ozett commented 4 years ago

i unplugged 4 cameras from the cable-lan over a period of 1 hour for maintenance. the cameras werent reachable over this period. the constant re-trying to re-connect provoked a total crash of complete node-red.

could the event of unreachable cameras be programmed more robust?

image

ozett commented 4 years ago

it happend again... image

ozett commented 4 years ago

the camera 130 was really not accesibble. too much reconnects that crashes node-red? maybe catch this situation and start a timerintervall for checking if cam is available again at a later time?

henry-spanka commented 4 years ago

Hi, I have removed the reconnect logic again. It seems that it's already implemented in the Hikvision API, so no need for it here.

ozett commented 4 years ago

always if a camera was not available (disconnect, unplugged, i.e...) after a while the constant reconnecting crashed node-red. i will check for the hidden reconnect in some days. thanks for watching here