I'm using the latest Arduino UNO WiFi board to connect to a php script running on an Apache server launched in the XAMPP environment.
I'm using the Ciao class to make an http request to that server. Most of the time the communication succeeds, however, out of nowhere comes a bad request error.
I've attached an image with the server log.
I've tried to connect to a Tomcat server with a similar arduino code and the same error appears.
Okay, I tried to install a new version of the firmware but when I did it, i could no longer upload drafts to Arduino.
The following error messages appeared to me.
The stub uses 5552 bytes (17%) of the program's storage space. The maximum is 32256 bytes.
Global variables use 1125 bytes (54%) of dynamic memory, leaving 923 bytes for local variables. The maximum is 2048 bytes.
Avrdude: stk500_recv (): programmer is not responding
Avrdude: stk500_getsync () attempt 1 of 10: not in sync: resp = 0x16
Avrdude: stk500_recv (): programmer is not responding
Avrdude: stk500_getsync () attempt 2 of 10: not in sync: resp = 0x16
Avrdude: stk500_recv (): programmer is not responding
Avrdude: stk500_getsync () attempt 3 of 10: not in sync: resp = 0x16
Avrdude: stk500_recv (): programmer is not responding
Avrdude: stk500_getsync () attempt 4 of 10: not in sync: resp = 0x16
Avrdude: stk500_recv (): programmer is not responding
Avrdude: stk500_getsync () attempt 5 of 10: not in sync: resp = 0x16
Avrdude: stk500_recv (): programmer is not responding
Avrdude: stk500_getsync () attempt 6 of 10: not in sync: resp = 0x16
Avrdude: stk500_recv (): programmer is not responding
Avrdude: stk500_getsync () attempt 7 of 10: not in sync: resp = 0x16
Avrdude: stk500_recv (): programmer is not responding
Avrdude: stk500_getsync () attempt 8 of 10: not in sync: resp = 0x16
Avrdude: stk500_recv (): programmer is not responding
Avrdude: stk500_getsync () attempt 9 of 10: not in sync: resp = 0x16
Avrdude: stk500_recv (): programmer is not responding
Avrdude: stk500_getsync () attempt 10 of 10: not in sync: resp = 0x16
There is one thing I think I should report: When I press the reset button, none of the RX or TX LED lights up and when I upload a draft, only the RX led flashes.