I can't find a "man page" for "server.on", examples, yes. But as I gather the description would be:
server.on ([path], [function]);
I'd like to pass a value to the to the function ie. on/off, 1/0, up/down etc. It didn't have a problem with "function (int n) {dosomething;}" but went screaming into the night with "invalid use of the void expression "server.on... switchRelay(1));" Now I can work around by creating 2 unique subroutines but I'm a minimalist - as is never do anything in 20 lines of code you can do in 2000 - NOT!
Anyhow, I think I know the answer - SOL - but I'd like someone to verify. Thanks