I am building esp-now gateway with mqtt but need long distance (200 meters). I try to use LR mode but when I enable de LR mode I lost connection with WiFi.
Is licit to make use of LR and STA at the same time?
-
Are you able to use ESP-NOW at all together with Wifi? I thought this is mutual exclusive, since the same hardware is used for bothchrisl– chrisl2021年12月27日 20:23:28 +00:00Commented Dec 27, 2021 at 20:23
-
Yes but not in LR modeDiego Serrano– Diego Serrano2021年12月27日 20:27:45 +00:00Commented Dec 27, 2021 at 20:27
-
you can use both by switching back and forth, but adding a 2nd ESP tied to serial is probably better to avoid message delivery delays.dandavis– dandavis2022年01月01日 20:00:46 +00:00Commented Jan 1, 2022 at 20:00
1 Answer 1
you can easily use both ESPnow and WiFi - you just configure it as WiFi.mode(WIFI_MODE_APSTA); no need to switch between AP and STA And I have not experienced any delays for my gateway - sending MQTT message over WiFi to MQTT broker takes 6ms