Skip to content

Commit

Permalink
Attribute type fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloyanam committed Sep 19, 2022
1 parent 172f870 commit 0be205f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arduino-via-hono/src/IoTAgent/IoTAgent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,23 +214,23 @@ IoTAgent& IoTAgent::addAttribute(const char* name, const bool& value) {
return *this;
}
IoTAgent& IoTAgent::addAttribute(const char* name, const long& value) {
::addAttribute<bool>(name, value, attributes);
::addAttribute<long>(name, value, attributes);
return *this;
}
IoTAgent& IoTAgent::addAttribute(const char* name, const unsigned long& value) {
::addAttribute<bool>(name, value, attributes);
::addAttribute<unsigned long>(name, value, attributes);
return *this;
}
IoTAgent& IoTAgent::addAttribute(const char* name, const float& value) {
::addAttribute<bool>(name, value, attributes);
::addAttribute<float>(name, value, attributes);
return *this;
}
IoTAgent& IoTAgent::addAttribute(const char* name, const String& value) {
::addAttribute<bool>(name, value, attributes);
::addAttribute<String>(name, value, attributes);
return *this;
}
IoTAgent& IoTAgent::addAttribute(const char* name, const JsonObjectConst& value) {
::addAttribute<bool>(name, value, attributes);
::addAttribute<JsonObjectConst>(name, value, attributes);
return *this;
}

Expand Down

0 comments on commit 0be205f

Please sign in to comment.