1 vote

error: expected unqualified-id before 'if' if (send) { but all semicolons are available

Check your braces. Use Control-T to autoformat your code and the error will become apparent. This is your entire loop function. Everything after this is is outside of the function. void loop() { //...
Delta_G's user avatar
  • 3,103

Only top scored, non community-wiki answers of a minimum length are eligible