Skip to content

Commit 583227a

Browse files
Copilotstritti
andcommitted
Fix cpplint: remove namespace indentation from all files
Co-authored-by: stritti <184547+stritti@users.noreply.github.com>
1 parent 7a47443 commit 583227a

3 files changed

Lines changed: 29 additions & 29 deletions

File tree

src/Homie/Constants.hpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,29 @@
1111
#endif
1212

1313
namespace HomieInternals {
14-
const char HOMIE_VERSION[] = "3.0.1";
15-
const char HOMIE_ESP8266_VERSION[] = "3.0.0";
14+
const char HOMIE_VERSION[] = "3.0.1";
15+
const char HOMIE_ESP8266_VERSION[] = "3.0.0";
1616

17-
const IPAddress ACCESS_POINT_IP(192, 168, 123, 1);
17+
const IPAddress ACCESS_POINT_IP(192, 168, 123, 1);
1818

19-
const uint16_t DEFAULT_MQTT_PORT = 1883;
20-
const char DEFAULT_MQTT_BASE_TOPIC[] = "homie/";
19+
const uint16_t DEFAULT_MQTT_PORT = 1883;
20+
const char DEFAULT_MQTT_BASE_TOPIC[] = "homie/";
2121

22-
const uint8_t DEFAULT_RESET_PIN = 0; // == D3 on nodeMCU
23-
const uint8_t DEFAULT_RESET_STATE = LOW;
24-
const uint16_t DEFAULT_RESET_TIME = 5 * 1000;
22+
const uint8_t DEFAULT_RESET_PIN = 0; // == D3 on nodeMCU
23+
const uint8_t DEFAULT_RESET_STATE = LOW;
24+
const uint16_t DEFAULT_RESET_TIME = 5 * 1000;
2525

26-
const char DEFAULT_BRAND[] = "Homie";
26+
const char DEFAULT_BRAND[] = "Homie";
2727

28-
const uint16_t CONFIG_SCAN_INTERVAL = 20 * 1000;
29-
const uint32_t STATS_SEND_INTERVAL_SEC = 1 * 60;
30-
const uint16_t MQTT_RECONNECT_INITIAL_INTERVAL = 1000;
31-
const uint8_t MQTT_RECONNECT_MAX_BACKOFF = 6;
28+
const uint16_t CONFIG_SCAN_INTERVAL = 20 * 1000;
29+
const uint32_t STATS_SEND_INTERVAL_SEC = 1 * 60;
30+
const uint16_t MQTT_RECONNECT_INITIAL_INTERVAL = 1000;
31+
const uint8_t MQTT_RECONNECT_MAX_BACKOFF = 6;
3232

33-
const float LED_WIFI_DELAY = 1;
34-
const float LED_MQTT_DELAY = 0.2;
33+
const float LED_WIFI_DELAY = 1;
34+
const float LED_MQTT_DELAY = 0.2;
3535

36-
const char CONFIG_UI_BUNDLE_PATH[] = "/homie/ui_bundle.gz";
37-
const char CONFIG_NEXT_BOOT_MODE_FILE_PATH[] = "/homie/NEXTMODE";
38-
const char CONFIG_FILE_PATH[] = "/homie/config.json";
36+
const char CONFIG_UI_BUNDLE_PATH[] = "/homie/ui_bundle.gz";
37+
const char CONFIG_NEXT_BOOT_MODE_FILE_PATH[] = "/homie/NEXTMODE";
38+
const char CONFIG_FILE_PATH[] = "/homie/config.json";
3939
} // namespace HomieInternals

src/Homie/Datatypes/Callbacks.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
class HomieNode;
88

99
namespace HomieInternals {
10-
typedef std::function<void()> OperationFunction;
10+
typedef std::function<void()> OperationFunction;
1111

12-
typedef std::function<bool(const HomieNode& node, const HomieRange& range, const String& property, const String& value)> GlobalInputHandler;
13-
typedef std::function<bool(const HomieRange& range, const String& property, const String& value)> NodeInputHandler;
14-
typedef std::function<bool(const HomieRange& range, const String& value)> PropertyInputHandler;
12+
typedef std::function<bool(const HomieNode& node, const HomieRange& range, const String& property, const String& value)> GlobalInputHandler;
13+
typedef std::function<bool(const HomieRange& range, const String& property, const String& value)> NodeInputHandler;
14+
typedef std::function<bool(const HomieRange& range, const String& value)> PropertyInputHandler;
1515

16-
typedef std::function<void(const HomieEvent& event)> EventHandler;
16+
typedef std::function<void(const HomieEvent& event)> EventHandler;
1717

18-
typedef std::function<bool(const String& level, const String& value)> BroadcastHandler;
18+
typedef std::function<bool(const String& level, const String& value)> BroadcastHandler;
1919
} // namespace HomieInternals

src/Homie/Strings.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#pragma once
22

33
namespace HomieInternals {
4-
// config mode
4+
// config mode
55

6-
const char PROGMEM_CONFIG_APPLICATION_JSON[] PROGMEM = "application/json";
7-
const char PROGMEM_CONFIG_JSON_SUCCESS[] PROGMEM = "{\"success\":true}";
8-
const char PROGMEM_CONFIG_JSON_FAILURE_BEGINNING[] PROGMEM = "{\"success\":false,\"error\":\"";
9-
const char PROGMEM_CONFIG_JSON_FAILURE_END[] PROGMEM = "\"}";
6+
const char PROGMEM_CONFIG_APPLICATION_JSON[] PROGMEM = "application/json";
7+
const char PROGMEM_CONFIG_JSON_SUCCESS[] PROGMEM = "{\"success\":true}";
8+
const char PROGMEM_CONFIG_JSON_FAILURE_BEGINNING[] PROGMEM = "{\"success\":false,\"error\":\"";
9+
const char PROGMEM_CONFIG_JSON_FAILURE_END[] PROGMEM = "\"}";
1010

1111
}

0 commit comments

Comments
 (0)