diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-30 13:06:33 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-05-30 13:06:33 +0200 |
commit | 7da6fc9f7be6c732aeae09cdcc338e1af2b5ad4c (patch) | |
tree | 6363660972ccfcc48dc4d2068ad174214e9f38b5 /minion/src/wifi_module.hpp | |
parent | 1452435a8d662bbd39f0c812cdc24ddd4ec226d3 (diff) |
refactor(minion): store string constants in flash memory
Diffstat (limited to 'minion/src/wifi_module.hpp')
-rw-r--r-- | minion/src/wifi_module.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/minion/src/wifi_module.hpp b/minion/src/wifi_module.hpp index 963a1de..9bc2c20 100644 --- a/minion/src/wifi_module.hpp +++ b/minion/src/wifi_module.hpp @@ -4,6 +4,7 @@ #include "network_connection.hpp" #include <SoftwareSerial.h> +#include <avr/pgmspace.h> #include <stddef.h> #include <stdint.h> @@ -25,7 +26,7 @@ constexpr auto TIMEOUT_SHORT = 1500U; constexpr auto TIMEOUT_MEDIUM = 4000U; constexpr auto TIMEOUT_LONG = 10000U; -constexpr auto RESPONSE_HTTP_VERSION = "HTTP/1.1"; +const char RESPONSE_HTTP_VERSION[] PROGMEM = { "HTTP/1.1" }; constexpr auto RESPONSE_STATUS_CODE_LENGTH = 3U; constexpr auto NUMBER_BASE = 10U; |