@@ -250,18 +250,18 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
250
250
_deviceTopicOut = getTopic_deviceout ();
251
251
_deviceTopicIn = getTopic_devicein ();
252
252
253
- addPropertyToContainer (_device_property_container, _lib_version , " LIB_VERSION" , Permission::Read, - 1 );
253
+ addPropertyReal (_lib_version, _device_property_container , " LIB_VERSION" , Permission::Read);
254
254
#if OTA_ENABLED
255
- addPropertyToContainer (_device_property_container, _ota_cap , " OTA_CAP" , Permission::Read, - 1 );
256
- addPropertyToContainer (_device_property_container, _ota_error , " OTA_ERROR" , Permission::Read, - 1 );
257
- addPropertyToContainer (_device_property_container, _ota_img_sha256 , " OTA_SHA256" , Permission::Read, - 1 );
258
- addPropertyToContainer (_device_property_container, _ota_url , " OTA_URL" , Permission::ReadWrite, - 1 );
259
- addPropertyToContainer (_device_property_container, _ota_req , " OTA_REQ" , Permission::ReadWrite, - 1 );
255
+ addPropertyReal (_ota_cap, _device_property_container , " OTA_CAP" , Permission::Read);
256
+ addPropertyReal (_ota_error, _device_property_container , " OTA_ERROR" , Permission::Read);
257
+ addPropertyReal (_ota_img_sha256, _device_property_container , " OTA_SHA256" , Permission::Read);
258
+ addPropertyReal (_ota_url, _device_property_container , " OTA_URL" , Permission::ReadWrite);
259
+ addPropertyReal (_ota_req, _device_property_container , " OTA_REQ" , Permission::ReadWrite);
260
260
#endif /* OTA_ENABLED */
261
- addPropertyToContainer (_device_property_container, _thing_id, " thing_id" , Permission::ReadWrite, -1 ).onUpdate (setThingIdOutdated);
262
261
263
- addPropertyToContainer (_thing_property_container, _tz_offset, " tz_offset" , Permission::ReadWrite, -1 ).onSync (CLOUD_WINS).onUpdate (updateTimezoneInfo);
264
- addPropertyToContainer (_thing_property_container, _tz_dst_until, " tz_dst_until" , Permission::ReadWrite, -1 ).onSync (CLOUD_WINS).onUpdate (updateTimezoneInfo);
262
+ addPropertyReal (_tz_offset, _thing_property_container, " tz_offset" , Permission::ReadWrite).onSync (CLOUD_WINS).onUpdate (updateTimezoneInfo);
263
+ addPropertyReal (_tz_dst_until, _thing_property_container, " tz_dst_until" , Permission::ReadWrite).onSync (CLOUD_WINS).onUpdate (updateTimezoneInfo);
264
+ addPropertyReal (_thing_id, _device_property_container, " thing_id" , Permission::ReadWrite).onUpdate (setThingIdOutdated);
265
265
266
266
#if OTA_STORAGE_PORTENTA_QSPI
267
267
#define BOOTLOADER_ADDR (0x8000000 )
0 commit comments