open-horizon-services / service-liquid-prep

3 stars 4 forks source link

Add HTTPS support to current ESP32 firmware #12

Closed playground closed 1 year ago

playground commented 1 year ago

repo using autoconnect library to join user wifi network. For local development, this works fine, we will need to support HTTPS in production.

playground commented 1 year ago

We probably will the space limit by adding https support. We should probably explore wasm3 https://github.com/wasm3/wasm3 to see if we can leverage the flexibility and small footprint of this technology.

IBMAngel commented 1 year ago

I believe that this repo https://github.com/fhessel/esp32_https_server provides the library needed to give https support. However it's a bit outdated and I've been having trouble running it smoothly.

IBMAngel commented 1 year ago

in HTTPConnection.hpp had to change #include <hwcrypto/sha.h> to #include <esp32/sha.h>

playground commented 1 year ago

@IBMAngel FYI https://randomnerdtutorials.com/esp8266-nodemcu-https-requests/

IBMAngel commented 1 year ago

Screenshot 2023-02-03 at 3 21 33 PM Screenshot 2023-02-03 at 3 08 40 PM im having trouble working past this error, its a recent issue and haven't changed any lines of code. Screenshot 2023-02-03 at 3 05 42 PM

playground commented 1 year ago

Closing this as we are going to have SSL on express server.