Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbedConnectorInterface by
Diff: api/OptionsBuilder.cpp
- Revision:
- 15:8ada80242804
- Parent:
- 2:853f9ecc12df
- Child:
- 19:e2cbaeeea509
--- a/api/OptionsBuilder.cpp Tue Feb 03 06:51:34 2015 +0000
+++ b/api/OptionsBuilder.cpp Thu Feb 05 14:49:04 2015 +0000
@@ -147,6 +147,27 @@
return *this;
}
+// set WiFi SSID
+OptionsBuilder &OptionsBuilder::setWiFiSSID(char *ssid)
+{
+ this->m_wifi_ssid = string(ssid);
+ return *this;
+}
+
+// set WiFi AuthType
+OptionsBuilder &OptionsBuilder::setWiFiAuthType(WiFiAuthTypes auth_type)
+{
+ this->m_wifi_auth_type = auth_type;
+ return *this;
+}
+
+// set WiFi AuthKey
+OptionsBuilder &OptionsBuilder::setWiFiAuthKey(char *auth_key)
+{
+ this->m_wifi_auth_key = string(auth_key);
+ return *this;
+}
+
// build out our immutable self
Options *OptionsBuilder::build()
{
