custom for >5 resources
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() {