1

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?

asked Dec 27, 2021 at 20:15
3
  • 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 both Commented Dec 27, 2021 at 20:23
  • Yes but not in LR mode Commented 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. Commented Jan 1, 2022 at 20:00

1 Answer 1

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

answered Jun 11, 2022 at 18:57

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.