Skip to content

Commit

Permalink
Fix build if board do not support OTA
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Jun 25, 2024
1 parent bdfad12 commit 323fb38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ArduinoIoTCloudTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ int ArduinoIoTCloudTCP::begin(ConnectionHandler & connection, bool const enable_
TLSClientBroker *brokerTLSClient = new TLSClientBroker();
brokerTLSClient->begin(connection);

#if OTA_ENABLED
#if OTA_ENABLED
/* Setup OTA TLS client */
TLSClientOta *otaTLSClient = new TLSClientOta();
otaTLSClient->begin(connection);
#else
Client *otaTLSClient = nullptr;
#endif

#if defined(BOARD_HAS_SECRET_KEY)
Expand Down

0 comments on commit 323fb38

Please sign in to comment.