Skip to content

Commit bfe9e1c

Browse files
committed
Change sync strategy to CLOUD_WINS
1 parent 263fe13 commit bfe9e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArduinoIoTCloudTCP.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
238238
addPropertyReal(_ota_cap, "OTA_CAP", Permission::Read);
239239
addPropertyReal(_ota_error, "OTA_ERROR", Permission::Read);
240240
addPropertyReal(_ota_img_sha256, "OTA_SHA256", Permission::Read);
241-
addPropertyReal(_ota_url, "OTA_URL", Permission::ReadWrite).onSync(DEVICE_WINS);
242-
addPropertyReal(_ota_req, "OTA_REQ", Permission::ReadWrite).onSync(DEVICE_WINS);
241+
addPropertyReal(_ota_url, "OTA_URL", Permission::ReadWrite).onSync(CLOUD_WINS);
242+
addPropertyReal(_ota_req, "OTA_REQ", Permission::ReadWrite).onSync(CLOUD_WINS);
243243
#endif /* OTA_ENABLED */
244244

245245
#if OTA_STORAGE_PORTENTA_QSPI

0 commit comments

Comments
 (0)