Moved FEATURE_CLOUD and FEATURE_UDPCLOUD into config-system
This commit is contained in:
@@ -24,7 +24,6 @@ namespace {
|
||||
constexpr const char * const TAG = "BOBBYCLOUD";
|
||||
} // namespace
|
||||
|
||||
#ifdef FEATURE_CLOUD
|
||||
|
||||
espcpputils::websocket_client cloudClient;
|
||||
bool cloudStarted{};
|
||||
@@ -53,6 +52,9 @@ void initCloud()
|
||||
|
||||
void updateCloud()
|
||||
{
|
||||
if (!configs.feature.cloud.value)
|
||||
return;
|
||||
|
||||
const auto now = espchrono::millis_clock::now();
|
||||
|
||||
if (!lastCloudCollect || now - *lastCloudCollect >= std::chrono::milliseconds{configs.boardcomputerHardware.timersSettings.cloudCollectRate.value})
|
||||
@@ -284,5 +286,3 @@ void destroyCloud()
|
||||
cloudClient = {};
|
||||
cloudStarted = false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user