[WIFI] Added macros for ESP - WifiGMode and WifiPower to reduce/eliminate Wifi interference on sensors like HC-SR501 (#1531)

* Fix WiFi interference on PIR

* Added to DOCS re: WiFi interference.

* Add sufficx -custom to configs without prod binaries

* Add ESP32 Wifi band and tx power to user_config.h

---------

Co-authored-by: andre <agreylin@gmail.com>
This commit is contained in:
Die Peter Panandandre authored and GitHub committed 2023-03-16 17:50:14 -05:00
1 parent d530841b0e
commit 3b4af96990
4 files changed
+101

No files matched your search

+28
View File
@@ -679,6 +679,34 @@ board_upload.port = /dev/cu.usbserial-0001
board_monitor.speed = 921600
board_monitor.port = /dev/cu.usbserial-0001
[env:esp32doitv1-aithinker-r01-sx1278-hcsr501-test]
extends = env:esp32doitv1-aithinker-r01-sx1278
lib_deps = ${env:esp32doitv1-aithinker-r01-sx1278.lib_deps}
${libraries.unifiedsensor}
build_flags =
${env:esp32doitv1-aithinker-r01-sx1278.build_flags}
'-DHCSR501_LED_NOTIFY_GPIO=LED_BUILTIN'
'-DWifiGMode=true'
'-DWifiPower=WIFI_POWER_11dBm'
'-DZsensorHCSR501="HCSR501"'
'-DHCSR501_GPIO=13'
[env:esp32doitv1-aithinker-r01-sx1278-hcsr501-ota-test]
extends = env:esp32doitv1-aithinker-r01-sx1278-hcsr501-test
upload_protocol = espota
upload_port = 10.0.0.108
upload_flags =
--auth=OTAPASSWORD
--port=8266
[env:esp32doitv1-aithinker-r01-sx1278-ota-test]
extends = env:esp32doitv1-aithinker-r01-sx1278
upload_protocol = espota
upload_port = 10.0.0.70
upload_flags =
--auth=OTAPASSWORD
--port=8266
[env:esp32dev-rtl_433]
platform = ${com.esp32_platform}
board = esp32dev