arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
288 stars 172 forks source link

Trying to POST using the Arduino PortentaH7 not working #129

Closed hpssjellis closed 2 years ago

hpssjellis commented 2 years ago

Has anyone been able to do a simple web form style POST to a cloud server using the arduino PortentaH7?

The correct WiFi library is not listed, but even with #include "WiFi.h" posting does not seem to work and eventually causses a RED flashing onboard LED.

facchinm commented 2 years ago

Hi @hpssjellis , I triaged the issue and it's due to the library not closing the client after a POST is executed. To keep compatibility with other WiFi* libraries, I'd keep this one untouched, "fixing" the issue here https://github.com/arduino/ArduinoCore-mbed/pull/439/commits/7a11cf03f766143232da3fc867d395030a3865c7 (part of https://github.com/arduino/ArduinoCore-mbed/pull/439)