mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-31 01:45:45 +00:00
* ESP-Now: long range mode
This commit is contained in:
@@ -25,6 +25,8 @@ static void OnDataRecv(const uint8_t *mac, const uint8_t *data, int len) {
|
||||
void ESPNOWRadio::begin() {
|
||||
// Set device as a Wi-Fi Station
|
||||
WiFi.mode(WIFI_STA);
|
||||
// Long Range mode
|
||||
esp_wifi_set_protocol(WIFI_IF_STA, WIFI_PROTOCOL_LR);
|
||||
|
||||
// Init ESP-NOW
|
||||
if (esp_now_init() != ESP_OK) {
|
||||
|
||||
Reference in New Issue
Block a user