You are reading a single comment by @fanThomas and its replies.
Click here to read the full conversation.
-
Thanks for your tips, you are right there are some other issues. I came not across this yet because I got this compilation error which was irritating me. The mentioned error message does not go away, even with the corrected code. Of course I can remove the the breaks, but the code is not efficient because it does not stop looping when the correct record is found.
Give this a shot:
...there were obviously also some other issues... - see
// <---- comments
- were there?What is the sort helping with? ...do you have duplicate ssid in scan result and want only the one to match w/ highest rssi value?
(Since labels are bad in general and worst in compiler free environment - as Espruino - in regard of nested control management, labels are not implemented in Espruino. Why though the simple, one-level break is not working... I don't know).