Open Zhairgling opened 1 year ago
"solve" the problem
Do you get any specific error during compilation? Not sure how ESPNow supported on C3.
Please provide any additional details.
It is not an issue with espNow but with the crypto lib used
So using a C3 board, all messages are sent in the clear? Is this due to the single-core processor or...? I was all set to try this using low cost C3 modules 😞 but need the encryption.
Do you get any specific compilation errors?
I'm not having compilation errors related to this issue. For me the ESP32-C3 node device hangs. After sending time-sync message, and when receiving any message. So the first encryption works, but then subsequent decryption hangs...
I Googled, and found that the commands: esp_aes_acquire_hardware()
and esp_aes_release_hardware()
in the encrypt and decrypt functions in EspNowFloodingMesh.cpp, seems to be excessive. So I tested to comment them out - And now it works... :)
Comment or remove these lines in EspNowFloodingMesh.cpp
:
837, 839, 873, 875
!! I have only tested this fix on a ESP32-C3 device, so I don't know how it works for other ESP32 variants.
That fixes the encryption problem - But... I can only use my ESP32-C3 node device together with an ESP32 master. And ESP8266 node devices only works with ESP8622 masters. I'll open a new issue for that - Tomorrow...
Hi, thank's for your work !
I'm working with your fork. That's working fine with several esp32 like devkit and weemos d1mini but I can't get it working with the esp32-c3 board. Any advice ? Thank you again mate !