arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
288 stars 172 forks source link

No Socket Found - MKR1010 #44

Closed 8bitkick closed 5 years ago

8bitkick commented 6 years ago

Following examples to do HTTPS POST every 15s, works fine for initial requests but eventually returns "No Socket Found"

Fixed by adding an httpClient.stop() after request as suggested by @sandeepmistry in other comments.

Might worth adding this to the examples (e.g. SimpleGet.ino, SimplePost.ino).

sandeepmistry commented 6 years ago

@Rocketct we should also look at making sure the WiFiNINA WiFiClient behaves the same as the WiFi101 one and closes the old socket in connect.

Rocketct commented 6 years ago

hi @8bitkick, the PR https://github.com/arduino-libraries/WiFiNINA/pull/41 should resolve this issue, could you test and let us know if work?