Also, your syntax for the 'else' is completely wrong.
else (connectedSTATUS == false); // 'if' is missing and ';' incorrectly terminates the statement
should be
else if (connectedSTATUS == false)
or just
else
as mentioned above.
Also, your syntax for the 'else' is completely wrong.
else (connectedSTATUS == false); // 'if' is missing and ';' incorrectly terminates the statement
should be
else if (connectedSTATUS == false)
or just
else
as mentioned above.