Skip to content

Move sendOTAPropertiesToCloud() inside #if OTA_ENABLED #291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/ArduinoIoTCloudTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ void ArduinoIoTCloudTCP::sendPropertiesToCloud()
sendPropertyContainerToCloud(_property_container);
}

#if OTA_ENABLED
void ArduinoIoTCloudTCP::sendOTAPropertiesToCloud()
{
PropertyContainer ota_property_container;
Expand All @@ -602,6 +603,7 @@ void ArduinoIoTCloudTCP::sendOTAPropertiesToCloud()

sendPropertyContainerToCloud(ota_property_container);
}
#endif

void ArduinoIoTCloudTCP::requestLastValue()
{
Expand Down
2 changes: 1 addition & 1 deletion src/ArduinoIoTCloudTCP.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
void handleMessage(int length);
void sendPropertyContainerToCloud(PropertyContainer & property_container);
void sendPropertiesToCloud();
void sendOTAPropertiesToCloud();
void requestLastValue();
int write(String const topic, byte const data[], int const length);

#if OTA_ENABLED
void onOTARequest();
void sendOTAPropertiesToCloud();
#endif

};
Expand Down