How to fix arduino error 302 message?

3 Responses

  1. admin says:

    This is due to the hidden invalid characters in the code. It can occur while you directly copy paste the code.
    Try: Tools > Fix Encoding & Reload in the Arduino IDE OR check and remove every extra spaces and character in the code.

  2. Pat says:

    Got it thank you much

  3. Xiang yang says:

    Error: stray ‘\302’ in program
    It mainly occurs when copy paste codes from websites. it is due to special characters or hidden spaces. check for quotation marks, ok to have this ” not this ”. Replace Unicode utf-8 with ASCII.

Leave a Reply

Your email address will not be published. Required fields are marked *