Skip to content

Commit c2aa210

Browse files
committed
Extract default channel into constant
1 parent 8ba271e commit c2aa210

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/WiFi/src/WiFi.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ extern "C" {
3939

4040
#define DEFAULT_IP_ADDRESS "192.168.3.1"
4141
#define DEFAULT_NETMASK "255.255.255.0"
42+
#define DEFAULT_AP_CHANNEL 6
4243

4344
namespace arduino {
4445

@@ -93,7 +94,7 @@ class WiFiClass
9394
*/
9495
int begin(char* ssid, const char *passphrase);
9596

96-
int beginAP(const char *ssid, const char* passphrase, uint8_t channel = 6);
97+
int beginAP(const char *ssid, const char* passphrase, uint8_t channel = DEFAULT_AP_CHANNEL);
9798

9899
/* Change Ip configuration settings disabling the dhcp client
99100
*

0 commit comments

Comments
 (0)