Skip to content

Commit 676b4fe

Browse files
committed
Move ArduinoIoTCloudTCP::sendOTAPropertiesToCloud() inside #if OTA_ENABLED directive
1 parent c7ed9d7 commit 676b4fe

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/ArduinoIoTCloudTCP.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ void ArduinoIoTCloudTCP::sendPropertiesToCloud()
585585
sendPropertyContainerToCloud(_property_container);
586586
}
587587

588+
#if OTA_ENABLED
588589
void ArduinoIoTCloudTCP::sendOTAPropertiesToCloud()
589590
{
590591
PropertyContainer ota_property_container;
@@ -602,6 +603,7 @@ void ArduinoIoTCloudTCP::sendOTAPropertiesToCloud()
602603

603604
sendPropertyContainerToCloud(ota_property_container);
604605
}
606+
#endif
605607

606608
void ArduinoIoTCloudTCP::requestLastValue()
607609
{

src/ArduinoIoTCloudTCP.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
166166
void handleMessage(int length);
167167
void sendPropertyContainerToCloud(PropertyContainer & property_container);
168168
void sendPropertiesToCloud();
169-
void sendOTAPropertiesToCloud();
170169
void requestLastValue();
171170
int write(String const topic, byte const data[], int const length);
172171

173172
#if OTA_ENABLED
174173
void onOTARequest();
174+
void sendOTAPropertiesToCloud();
175175
#endif
176176

177177
};

0 commit comments

Comments
 (0)