27
27
28
28
ArduinoIoTCloudClass::ArduinoIoTCloudClass ()
29
29
: _connection{nullptr }
30
- , _last_checked_property_index{0 }
31
30
, _time_service(TimeService)
32
31
, _thing_id{" " }
33
32
, _thing_id_property{nullptr }
@@ -44,12 +43,12 @@ ArduinoIoTCloudClass::ArduinoIoTCloudClass()
44
43
45
44
void ArduinoIoTCloudClass::push ()
46
45
{
47
- requestUpdateForAllProperties (_thing_property_container );
46
+ requestUpdateForAllProperties (getThingPropertyContainer () );
48
47
}
49
48
50
49
bool ArduinoIoTCloudClass::setTimestamp (String const & prop_name, unsigned long const timestamp)
51
50
{
52
- Property * p = getProperty (_thing_property_container , prop_name);
51
+ Property * p = getProperty (getThingPropertyContainer () , prop_name);
53
52
54
53
if (p == nullptr )
55
54
return false ;
@@ -118,7 +117,7 @@ Property& ArduinoIoTCloudClass::addPropertyReal(String& property, String name, i
118
117
}
119
118
Property& ArduinoIoTCloudClass::addPropertyReal (Property& property, String name, int tag, Permission const permission)
120
119
{
121
- return addPropertyToContainer (_thing_property_container , property, name, permission, tag);
120
+ return addPropertyToContainer (getThingPropertyContainer () , property, name, permission, tag);
122
121
}
123
122
124
123
/* The following methods are deprecated but still used for non-LoRa boards */
@@ -195,9 +194,9 @@ void ArduinoIoTCloudClass::addPropertyRealInternal(Property& property, String na
195
194
}
196
195
197
196
if (seconds == ON_CHANGE) {
198
- addPropertyToContainer (_thing_property_container , property, name, permission, tag).publishOnChange (minDelta, Property::DEFAULT_MIN_TIME_BETWEEN_UPDATES_MILLIS).onUpdate (fn).onSync (synFn);
197
+ addPropertyToContainer (getThingPropertyContainer () , property, name, permission, tag).publishOnChange (minDelta, Property::DEFAULT_MIN_TIME_BETWEEN_UPDATES_MILLIS).onUpdate (fn).onSync (synFn);
199
198
} else {
200
- addPropertyToContainer (_thing_property_container , property, name, permission, tag).publishEvery (seconds).onUpdate (fn).onSync (synFn);
199
+ addPropertyToContainer (getThingPropertyContainer () , property, name, permission, tag).publishEvery (seconds).onUpdate (fn).onSync (synFn);
201
200
}
202
201
}
203
202
0 commit comments