@@ -278,8 +278,8 @@ void Property::setAttributesFromCloud(std::list<CborMapData> * map_data_list) {
278
278
setAttributesFromCloud ();
279
279
}
280
280
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) {
283
283
// Manage the case to have boolean values received as integers 0/1
284
284
if (md.bool_val .isSet ()) {
285
285
value = md.bool_val .get ();
@@ -295,34 +295,34 @@ void Property::setAttributeReal(bool& value, String attributeName) {
295
295
});
296
296
}
297
297
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) {
300
300
value = md.val .get ();
301
301
});
302
302
}
303
303
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) {
306
306
value = md.val .get ();
307
307
});
308
308
}
309
309
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) {
312
312
value = md.val .get ();
313
313
});
314
314
}
315
315
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) {
318
318
value = md.str_val .get ();
319
319
});
320
320
}
321
321
322
322
#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)
324
324
#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)
326
326
#endif
327
327
{
328
328
if (attributeName != " " ) {
0 commit comments