ESP-NOW bridge for P4 (#573)
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <Tactility/app/App.h>
|
||||
#include <Tactility/Bundle.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace tt::app::fileselection {
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <sdkconfig.h>
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SOC_WIFI_SUPPORTED) && !defined(CONFIG_SLAVE_SOC_WIFI_SUPPORTED)
|
||||
#if defined(CONFIG_SOC_WIFI_SUPPORTED) || defined(CONFIG_SLAVE_SOC_WIFI_SUPPORTED)
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
@@ -66,4 +66,4 @@ size_t getMaxDataLength();
|
||||
|
||||
}
|
||||
|
||||
#endif // CONFIG_SOC_WIFI_SUPPORTED && !CONFIG_SLAVE_SOC_WIFI_SUPPORTED
|
||||
#endif // CONFIG_SOC_WIFI_SUPPORTED || CONFIG_SLAVE_SOC_WIFI_SUPPORTED
|
||||
@@ -83,6 +83,17 @@ void disconnect();
|
||||
/** @return true if the connection isn't unencrypted. */
|
||||
bool isConnectionSecure();
|
||||
|
||||
/**
|
||||
* @brief Suspend or resume the periodic background auto-connect scan.
|
||||
* @param[in] paused when true, the auto-connect timer stops issuing scans until resumed.
|
||||
* Intended for narrow, short-lived windows where any WiFi/co-processor traffic would be
|
||||
* unsafe (e.g. a known co-processor reboot in progress) - callers must resume when done.
|
||||
* Independent of the internal connect()/disconnect() auto-connect pause bookkeeping: only
|
||||
* a matching setAutoScanPaused(false) clears this, it is never cleared implicitly by a
|
||||
* connection succeeding/failing or the radio being enabled.
|
||||
*/
|
||||
void setAutoScanPaused(bool paused);
|
||||
|
||||
/** @return the RSSI value (negative number) or return 1 when not connected. */
|
||||
int getRssi();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user