8000 research project last commit · swapnil-pathak/arduino-esp32@927e114 · GitHub
[go: up one dir, main page]

Skip to content

Commit 927e114

Browse files
research project last commit
1 parent fbbba44 commit 927e114

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

libraries/WiFi/examples/WiFiSmartConfig/WiFiSmartConfig.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ void setup() {
3535
}
3636
*/
3737

38-
WiFi.beginSmartConfig(hmacResult); //Enter param (byte hmacResult[32])
39-
38+
//WiFi.beginSmartConfig(hmacResult); //Enter param (byte hmacResult[32])
39+
WiFi.beginSmartConfig();
4040
// --------------------------------------------------------------------
4141

4242
//Wait for SmartConfig packet from mobile

libraries/WiFi/src/WiFiSTA.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,9 @@ bool WiFiSTAClass::_smartConfigStarted = false;
621621
bool WiFiSTAClass::_smartConfigDone = false;
622622

623623

624-
bool WiFiSTAClass::beginSmartConfig(byte hmac_key[32]) {
624+
//bool WiFiSTAClass::beginSmartConfig(byte hmac_key[32]) {
625+
bool WiFiSTAClass::beginSmartConfig() {
626+
625627
if (_smartConfigStarted) {
626628
return false;
627629
}

libraries/WiFi/src/WiFiSTA.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ class WiFiSTAClass
8787
static bool _autoReconnect;
8888

8989
public:
90-
bool beginSmartConfig(byte hmac_key[32]); //Include param (byte hmacResult[32])
90+
//bool beginSmartConfig(byte hmac_key[32]); //Include param (byte hmacResult[32])
91+
bool beginSmartConfig();
9192
bool stopSmartConfig();
9293
bool smartConfigDone();
9394

@@ -96,6 +97,8 @@ class WiFiSTAClass
9697
static bool _smartConfigDone;
9798
static void _smartConfigCallback(uint32_t status, void* result);
9899

100+
//static bool _checkHmacResult();
101+
99102
};
100103

101104

0 commit comments

Comments
 (0)
0