From 7da6fc9f7be6c732aeae09cdcc338e1af2b5ad4c Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 30 May 2022 13:06:33 +0200 Subject: refactor(minion): store string constants in flash memory --- minion/src/wifi_module.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'minion/src/wifi_module.hpp') 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 +#include #include #include @@ -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; -- cgit v1.2.3-18-g5258