@@ -278,8 +278,8 @@ void Property::setAttributesFromCloud(std::list<CborMapData> * map_data_list) {
278278 setAttributesFromCloud ();
279279}
280280
281- void Property::setAttributeReal (bool & value, String attributeName) {
282- setAttributeReal (attributeName, [&value](CborMapData & md) {
281+ void Property::setAttribute (bool & value, String attributeName) {
282+ setAttribute (attributeName, [&value](CborMapData & md) {
283283 // Manage the case to have boolean values received as integers 0/1
284284 if (md.bool_val .isSet ()) {
285285 value = md.bool_val .get ();
@@ -295,34 +295,34 @@ void Property::setAttributeReal(bool& value, String attributeName) {
295295 });
296296}
297297
298- void Property::setAttributeReal (int & value, String attributeName) {
299- setAttributeReal (attributeName, [&value](CborMapData & md) {
298+ void Property::setAttribute (int & value, String attributeName) {
299+ setAttribute (attributeName, [&value](CborMapData & md) {
300300 value = md.val .get ();
301301 });
302302}
303303
304- void Property::setAttributeReal (unsigned int & value, String attributeName) {
305- setAttributeReal (attributeName, [&value](CborMapData & md) {
304+ void Property::setAttribute (unsigned int & value, String attributeName) {
305+ setAttribute (attributeName, [&value](CborMapData & md) {
306306 value = md.val .get ();
307307 });
308308}
309309
310- void Property::setAttributeReal (float & value, String attributeName) {
311- setAttributeReal (attributeName, [&value](CborMapData & md) {
310+ void Property::setAttribute (float & value, String attributeName) {
311+ setAttribute (attributeName, [&value](CborMapData & md) {
312312 value = md.val .get ();
313313 });
314314}
315315
316- void Property::setAttributeReal (String& value, String attributeName) {
317- setAttributeReal (attributeName, [&value](CborMapData & md) {
316+ void Property::setAttribute (String& value, String attributeName) {
317+ setAttribute (attributeName, [&value](CborMapData & md) {
318318 value = md.str_val .get ();
319319 });
320320}
321321
322322#ifdef __AVR__
323- void Property::setAttributeReal (String attributeName, nonstd::function<void (CborMapData & md)>setValue)
323+ void Property::setAttribute (String attributeName, nonstd::function<void (CborMapData & md)>setValue)
324324#else
325- void Property::setAttributeReal (String attributeName, std::function<void (CborMapData & md)>setValue)
325+ void Property::setAttribute (String attributeName, std::function<void (CborMapData & md)>setValue)
326326#endif
327327{
328328 if (attributeName != " " ) {
0 commit comments