mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-25 07:43:04 +05:00
style: resolve cpplint warnings in firmware sources
Place C headers before C++ headers in sensor, metrics, utility and application sources. Document the owned cache of the applied MQTT prefix and suppress runtime/string only for this variable. Preserve MQTT reconfiguration and prefix buffer cleanup. Validated with cpplint 2.0.2 over include, lib and src using CI filters.
This commit is contained in:
1 parent
97ac190bef
commit
7e6408ac75
7 files changed
+24
-17
No files matched your search
+3
-1
@@ -21,7 +21,9 @@
|
||||
std::mutex mqttMutex;
|
||||
|
||||
static MQTT* mqttClient = nullptr;
|
||||
static std::string mqttPrefix;
|
||||
|
||||
// Keep the applied prefix separate from settings until MQTT is reconfigured.
|
||||
static std::string mqttPrefix; // NOLINT(runtime/string)
|
||||
static std::atomic<unsigned long> mqttConnectedAt{0};
|
||||
static unsigned long mqttPublishedSensorAt[SENSORS_AMOUNT] = {};
|
||||
|
||||
|
||||
Reference in new issue
Block a user