Skip to content

Commit 1c38467

Browse files
committed
Fix build if board do not support OTA
1 parent 1dcba58 commit 1c38467

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/ArduinoIoTCloudTCP.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,12 @@ int ArduinoIoTCloudTCP::begin(ConnectionHandler & connection, bool const enable_
8484
TLSClientBroker *brokerTLSClient = new TLSClientBroker();
8585
brokerTLSClient->begin(connection);
8686

87-
#if OTA_ENABLED
87+
#if OTA_ENABLED
8888
/* Setup OTA TLS client */
8989
TLSClientOta *otaTLSClient = new TLSClientOta();
9090
otaTLSClient->begin(connection);
91+
#else
92+
Client *otaTLSClient = nullptr;
9193
#endif
9294

9395
#if defined(BOARD_HAS_SECRET_KEY)

0 commit comments

Comments
 (0)