autoexec.bat:
alias mode_wifi setPinRole 6 WifiLED_n
alias mode_relay setPinRole 6 LED_n
// at reboot, set WiFiLED
mode_wifi
// then, setup handlers
addChangeHandler WiFiState == 4 mode_relay
addChangeHandler WiFiState != 4 mode_wifi
Changed (only) LED pin from that link you mentioned above and put it in autoexec and it worked mostly.
When rebooted (with WiFi on) LED reacted to the relay on/off.
Kept unit turned on and switched WiFi off, and it didn't start blinking (for WiFi) like the other units.
Turned power off and then on again, and it started blinking (for WiFi).
Turned WiFi on and it stopped blinking (for WiFi).
So while on with WiFi, it doesn't register if WiFi goes out.
Not a biggie, I'm ok with that, thank you for this.
Now: is there a way to include FS files like this autoexec.bat file when flashing the unit with OpenBK7231?
A flag with the autoexec.bat file or so?
Or can we produce/download one file from a fully OpenBK7231 flashed and fully programmed unit (programmed with several FS files like autoexec.bat, AllOn.bat etc) which could be used with OpenBK7231 to fully (including FS file) flash other units?
Something like cloning (sans MAC addresses and RF config etc)
Thanks!!