Builder - moved SK permissions into set_sk_server method.
@@ -25,9 +25,10 @@ class SensESPAppBuilder {
this->password = password;
return this;
}
- SensESPAppBuilder* set_sk_server(String address, uint16_t port) {
+ SensESPAppBuilder* set_sk_server(String address, uint16_t port, SKPermissions permissions = READWRITE) {
this->sk_server_address = address;
this->sk_server_port = port;
+ this->sk_server_permissions = permissions;
return this;
}
SensESPAppBuilder* set_standard_sensors(StandardSensors sensors = ALL) {
@@ -51,11 +52,6 @@ class SensESPAppBuilder {
return this;
}
- SensESPAppBuilder* set_server_permissions(SKPermissions permissions) {
- this->sk_server_permissions = permissions;
- return this;
- }
-
SensESPApp* get_app() {
return new SensESPApp(hostname, ssid, password, sk_server_address,
sk_server_port, sensors, led_pin, enable_led,
