Skip to content

Commit

Permalink
Changed names to String
Browse files Browse the repository at this point in the history
  • Loading branch information
snakeye committed May 27, 2020
1 parent 5ba693e commit 7f7c169
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/WiFiConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <functional>
#include <list>

#include "ArduinoJson.h"
#include <ArduinoJson.h>

#include "typename.h"

Expand Down Expand Up @@ -137,7 +137,7 @@ class ConfigParameter : public ConfigParameterInterface
* @param mode parameter mode, optional
* @param cb callback, optional
*/
ConfigParameter(const char *name, T *ptr, Metadata *metadata = NULL, ParameterMode mode = PARAMETER_BOTH, std::function<void(const char *)> cb = NULL)
ConfigParameter(const char *name, T *ptr, Metadata *metadata = NULL, ParameterMode mode = PARAMETER_BOTH, std::function<void(String)> cb = NULL)
{
this->name = name;
this->ptr = ptr;
Expand Down Expand Up @@ -205,10 +205,10 @@ class ConfigParameter : public ConfigParameterInterface
}

private:
const char *name;
String name;
T *ptr;
Metadata *metadata;
std::function<void(const char *)> cb;
std::function<void(String)> cb;
ParameterMode mode;
};

Expand Down

0 comments on commit 7f7c169

Please sign in to comment.