pycom-documentation icon indicating copy to clipboard operation
pycom-documentation copied to clipboard

Blynk HTTPS example throws OSError: -8576

Open Jerre1990 opened this issue 4 years ago • 0 comments

(sysname='FiPy', nodename='FiPy', release='1.20.2.r4', version='v1.11-ffb0e1c on 2021-01-12', machine='FiPy with ESP32', lorawan='1.0.2', sigfox='1.0.1', pybytes='1.6.1')

I'm trying to establish an HTTPS connection between a FiPy (client) and a public website (server). The blynk example on this page does not seem to work anymore.

A bit of context:

  • I started out with the Blynk example on this page, which I cannot get to work. The following error occurs on the line where the socket is wrapped: OSError: -8576 (no idea how to trace back these obscure error codes to the real problem). Here's my code and project structure in Atom: image
  • I uploaded the Blynk server certificate both via Atom and via FileZilla (in the /flash/cert folder): same result. When the certificate is not present, the following error is thrown: OSError: CA file not found. This leads me to believe that the certificate is indeed found in the former case.
  • Following the advice in this forum post, I first synchronized the RTC (Is this even necessary? The official Pycom docs don't seem to mention it.). Unfortunately, without any luck (same error). Here's the code for that: image

Can anyone point me in the direction of a working example that actually works?

Jerre1990 avatar Sep 15 '21 09:09 Jerre1990