Could someone please show me how to solve this "expected '}' before 'else'" error - I just can't work out where I'm going wrong even when I compared this code (my modified version) to the stock code and saw no structural difference.
(((It's probably very obvious but I'm not pretending to be experienced)))
Error on line 82
expected '}' before 'else'
webpage.h (115 Bytes)
WiFi_Analog_Send.ino (3.64 KB)
I don't have all the right libraries, but I think you can solve this with an autoformat.
CTRL-T (some other keys on the mac)
Your loop appears to have mismatched curlies.
SpikeSmall:
Could someone please show me how to solve this "expected '}' before 'else'" error
It'll be because you don't have matching '{' and '}' brackets.
In the Arduino IDE, try Tools - Auto Format
Then go down your code and check each bracket... if you put the cursor just before a '{', it will highlight what it thinks the matching '}' is.
Yours,
TonyWilk
vinceherman - "No changes necessary for Arduino format"
Thanks though, I forgot I could do that.
el_supremo - "Clean up your act"?? As in go through and rewrite the section in detail?
TonyWilk - Autoformat didn't flag up anything - I went through and found nothing.
As in, this forum is for people of all ages. The comment on line 82 is not suitable/acceptable here.
Pete
It is now.
@SpikeSmall will be spending some time away from the forum.