From 6459a116da24987c6e2ae784c820608e1beb4dbe Mon Sep 17 00:00:00 2001 From: Takashi Matsuoka Date: Mon, 2 Sep 2019 18:28:02 +0900 Subject: [PATCH] Change parameter to const --- AZ3166/src/libraries/WiFi/src/AZ3166WiFi.cpp | 6 +++--- AZ3166/src/libraries/WiFi/src/AZ3166WiFi.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/AZ3166/src/libraries/WiFi/src/AZ3166WiFi.cpp b/AZ3166/src/libraries/WiFi/src/AZ3166WiFi.cpp index c830e6a8a..2ea00de89 100644 --- a/AZ3166/src/libraries/WiFi/src/AZ3166WiFi.cpp +++ b/AZ3166/src/libraries/WiFi/src/AZ3166WiFi.cpp @@ -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) { @@ -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) { diff --git a/AZ3166/src/libraries/WiFi/src/AZ3166WiFi.h b/AZ3166/src/libraries/WiFi/src/AZ3166WiFi.h index f76fb553d..ee990fcd9 100644 --- a/AZ3166/src/libraries/WiFi/src/AZ3166WiFi.h +++ b/AZ3166/src/libraries/WiFi/src/AZ3166WiFi.h @@ -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 @@ -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 @@ -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