-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Show the bssid during scan and connect * Connect with BSSID specified to force strongest signal when SSID's are identical * Allow specifying BSSID directly in config
- Loading branch information
1 parent
824b278
commit d23c1c4
Showing
4 changed files
with
62 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* From https://stackoverflow.com/a/35236734 | ||
*/ | ||
|
||
#include <Arduino.h> | ||
|
||
void parseBytes(const char* str, char sep, byte* bytes, int maxBytes, int base) { | ||
for (int i = 0; i < maxBytes; i++) { | ||
bytes[i] = strtoul(str, NULL, base); // Convert byte | ||
str = strchr(str, sep); // Find next separator | ||
if (str == NULL || *str == '\0') { | ||
break; // No more separators, exit | ||
} | ||
str++; // Point to next character after separator | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extern void parseBytes(const char* str, char sep, byte* bytes, int maxBytes, int base); |