* ESPNOW: now using hardware RNG for radio_new_identity()

This commit is contained in:
Scott Powell 2025-04-24 10:59:01 +10:00
parent 10df19d3a3
commit 00f0bb7471
4 changed files with 15 additions and 5 deletions

View file

@ -22,7 +22,7 @@ static void OnDataRecv(const uint8_t *mac, const uint8_t *data, int len) {
last_rx_len = len;
}
void ESPNOWRadio::begin() {
void ESPNOWRadio::init() {
// Set device as a Wi-Fi Station
WiFi.mode(WIFI_STA);
// Long Range mode

View file

@ -9,7 +9,7 @@ protected:
public:
ESPNOWRadio() { n_recv = n_sent = 0; }
void begin() override;
void init();
int recvRaw(uint8_t* bytes, int sz) override;
uint32_t getEstAirtimeFor(int len_bytes) override;
void startSendRaw(const uint8_t* bytes, int len) override;