Skip to content

Commit f7aedfd

Browse files
authored
Merge pull request #291 from pennam/ota_prop_patch
Move sendOTAPropertiesToCloud() inside #if OTA_ENABLED
2 parents cb71b92 + 676b4fe commit f7aedfd

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
@@ -599,6 +599,7 @@ void ArduinoIoTCloudTCP::sendPropertiesToCloud()
599599
sendPropertyContainerToCloud(_property_container);
600600
}
601601

602+
#if OTA_ENABLED
602603
void ArduinoIoTCloudTCP::sendOTAPropertiesToCloud()
603604
{
604605
PropertyContainer ota_property_container;
@@ -616,6 +617,7 @@ void ArduinoIoTCloudTCP::sendOTAPropertiesToCloud()
616617

617618
sendPropertyContainerToCloud(ota_property_container);
618619
}
620+
#endif
619621

620622
void ArduinoIoTCloudTCP::requestLastValue()
621623
{

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)