Hello,
i'm trying to script a connection supervision. There for the lasd Handshake Value from the wg peer is read. The script works when i'm logged in with Winbox, but when i disconnect, after a random time this value freeze.
:local lastHandshake [/interface wireguard peers get "0" last-handshake];
:log info "WG-1 Last $lastHandshake";
This line creates a local value with the time. "0" is the number of the interface, the quotas are for tests, don't know maybe the number ist string or something else, but without quotas is the same problem. At the moment i just log the value for tests. The script is started by the scheduler every 2m5s. I can see it works when i'm logged in vie winbox, but when i disconnect, a random time later the value freeze (see in log when i connect after while in winbox). After login it works again. Any hints?
V7.7 on hAP ac2