Find strongest signal from all connected clients

Hi All

Im looking for advice on the best way to achieve my goal.

I want to enumerate the /int wireless registration-table to find the strongest signal-strength.

Can anyone advise the most efficient way to achieve this?

You could do something like this… tested on v4.17.

{
	:local strongestSignal -100;
	:foreach i in=[/interface wireless registration-table find] do={
		:local signal [:pick [get $i signal-strength] 0 [:find [get $i signal-strength] "dBm"]];
		:if ($signal > $strongestSignal) do={
			:set strongestSignal $signal;
		}
	}
	:put "strongest signal: $strongestSignal";
}

Thanls, worked a treat.