Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Change parameter to const #1028

Open
wants to merge 1 commit into
base: public-preview
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AZ3166/src/libraries/WiFi/src/AZ3166WiFi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ int WiFiClass::begin(void)
return WL_CONNECT_FAILED;
}

int WiFiClass::begin(char* ssid)
int WiFiClass::begin(const char* ssid)
{
return this->begin(ssid, NULL);
}

int WiFiClass::begin(char* ssid, const char *passphrase)
int WiFiClass::begin(const char* ssid, const char *passphrase)
{
if (!is_wifi_inited)
{
Expand Down Expand Up @@ -143,7 +143,7 @@ int WiFiClass::disconnect()
return WL_SUCCESS;
}

int WiFiClass::beginAP(char* ssid, const char *passphrase)
int WiFiClass::beginAP(const char* ssid, const char *passphrase)
{
if(is_ap_inited)
{
Expand Down
6 changes: 3 additions & 3 deletions AZ3166/src/libraries/WiFi/src/AZ3166WiFi.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class WiFiClass
* param passphrase: Passphrase. Valid characters in a passphrase
* must be between ASCII 32-126 (decimal).
*/
int begin(char* ssid);
int begin(const char* ssid);

/* Start Wifi connection with passphrase
* the most secure supported mode will be automatically selected
Expand All @@ -56,7 +56,7 @@ class WiFiClass
* param passphrase: Passphrase. Valid characters in a passphrase
* must be between ASCII 32-126 (decimal).
*/
int begin(char* ssid, const char *passphrase);
int begin(const char* ssid, const char *passphrase);


/* Start Wifi connection with access point mode
Expand All @@ -66,7 +66,7 @@ class WiFiClass
* param passphrase: Passphrase. Valid characters in a passphrase
* must be between ASCII 32-126 (decimal).
*/
int beginAP(char* ssid, const char *passphrase);
int beginAP(const char* ssid, const char *passphrase);

/*
* Disconnect from the network
Expand Down