We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef73a65 commit bf24d44Copy full SHA for bf24d44
src/ArduinoIoTCloudTCP.h
@@ -96,9 +96,9 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
96
_get_ota_confirmation = cb;
97
98
if(_get_ota_confirmation) {
99
- _ota.setOtaPolicies(OTACloudProcessInterface::ApprovalRequired);
+ _ota.enableOtaPolicy(OTACloudProcessInterface::ApprovalRequired);
100
} else {
101
- _ota.setOtaPolicies(OTACloudProcessInterface::None);
+ _ota.disableOtaPolicy(OTACloudProcessInterface::ApprovalRequired);
102
}
103
104
0 commit comments