-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR 189: warnings if device has no LED signal strength indicators #191
Comments
It means there's no led section defined in the /etc/board.json. Is there some fallback default I should use if this isn't available? |
If no entry, we assume the LED does not exist on the device -- no action should be taken. Should the non-existing rssilow information in board.json be in error, then indeed the LED light would not be activated and a defect should/would be submitted -- correction would be made upstream to the image (generally by an openwrt PR). |
Could you post the board.json here for the offending device? Maybe I'm missing something, especially if this use to work. |
So below there is an LED section, but which led should I be choosing for this device? I had been picking the 'rssilow' led in other devices, but this obviously doesn't have that entry. In the original code there is a big switch statement for selecting the led, but we had hoped to use the board.json information instead. It looks like that might not be possible (in the short term anyway).
|
The 5 LEDs on top show ethernet traffic activity on the 5 ports. The 2 LEDs on the front: 1 is power-on, the other is labeled "USR" on the front panel, and shows up as "rb:green:user" and "USER". I believe this LED is already used by openwrt and lights up when linux is booted up. There's isn't another LED to use for mesh link status. The prior code did not correctly find anything ether -- looks like it defaulted and looked for "*link1", which doesn't exist on this device. I vote -- take no action for this device, no LED available for this purpose. |
I'm find with no light on this device, although I'm going to tidy up the led detection code a little so it return nil rather than failing if there are leds, but not the "correct" one. |
Improved error handling here - 6e32045 If you're happy with the resolution, please close this - thanks. |
The hap ac lite does not have signal strength indicator lights. (It has LEDs to show the switch ports are active.) This warning is showing through:
root@AE6XE-haplite-test:~# cat /tmp/manager.log
12/10 13:01:39: /usr/lib/lua/aredn/hardware.lua:139: attempt to index field 'rssilow' (a nil value)
[... repeats a lot]
The text was updated successfully, but these errors were encountered: