Add WiFi, ESP-NOW and combined wireless CLI controls
This commit is contained in:
1 parent
071ca663c2
commit
0e0aa8e014
25 files changed
+1311
-61
No files matched your search
@@ -12,6 +12,7 @@
|
||||
#include <helpers/CLICommandUtils.h>
|
||||
#include <helpers/UsbLogging.h>
|
||||
#include <helpers/esp32/WiFiRadioPolicy.h>
|
||||
#include <helpers/WirelessControl.h>
|
||||
#include <helpers/esp32/WiFiStationPolicy.h>
|
||||
|
||||
namespace {
|
||||
@@ -319,6 +320,7 @@ static void portalTask(void* arg) {
|
||||
WiFiSetupPortal::WiFiSetupPortal() : _active(false), _impl(nullptr) {}
|
||||
|
||||
bool WiFiSetupPortal::begin(const char* ap_name, SaveCallback save_callback, void* context) {
|
||||
if (mesh::wireless::control().blocked(mesh::wireless::WiFi)) return false;
|
||||
if (_active) return true;
|
||||
PortalImpl* impl = static_cast<PortalImpl*>(_impl);
|
||||
if (!impl) {
|
||||
|
||||
Reference in new issue
Block a user