Skip to content

Commit ffe1811

Browse files
authored
Merge pull request #4677 from neheb/honey
Honeywell: constexpr conversions
2 parents 70db48f + 0fbb746 commit ffe1811

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

hardware/Honeywell.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@
1414

1515
#define round(a) ( int ) ( a + .5 )
1616

17-
const std::string HONEYWELL_DEFAULT_APIKEY = "atD3jtzXC5z4X8WPbzvo0CBqWi7S81Nh";
18-
const std::string HONEYWELL_DEFAULT_APISECRET = "TXDzy2aHpAJw6YiO";
19-
const std::string HONEYWELL_LOCATIONS_PATH = "https://api.honeywell.com/v2/locations?apikey=[apikey]";
20-
const std::string HONEYWELL_UPDATE_THERMOSTAT = "https://api.honeywell.com/v2/devices/thermostats/[deviceid]?apikey=[apikey]&locationId=[locationid]";
21-
const std::string HONEYWELL_TOKEN_PATH = "https://api.honeywell.com/oauth2/token";
22-
23-
const std::string kSetPointDesc = "Target temperature ([devicename])";
24-
const std::string kHeatingDesc = "Heating Mode([devicename])";
25-
const std::string kCoolingDesc = "Cooling Mome([devicename])";
26-
const std::string kHeatingStatusDesc = "Heating State ([devicename])";
27-
const std::string kCoolingStatusDesc = "Cooling State ([devicename])";
28-
const std::string kOutdoorTempDesc = "Outdoor temperature ([devicename])";
29-
const std::string kRoomTempDesc = "Room temperature ([devicename])";
30-
const std::string kAwayDesc = "Away ([name])";
31-
const std::string kfanRequest = "Fan Request ([devicename])";
32-
const std::string kcirculationFanRequest = "Circulation Fan Request ([devicename])";
17+
constexpr auto HONEYWELL_DEFAULT_APIKEY = "atD3jtzXC5z4X8WPbzvo0CBqWi7S81Nh";
18+
constexpr auto HONEYWELL_DEFAULT_APISECRET = "TXDzy2aHpAJw6YiO";
19+
constexpr auto HONEYWELL_LOCATIONS_PATH = "https://api.honeywell.com/v2/locations?apikey=[apikey]";
20+
constexpr auto HONEYWELL_UPDATE_THERMOSTAT = "https://api.honeywell.com/v2/devices/thermostats/[deviceid]?apikey=[apikey]&locationId=[locationid]";
21+
constexpr auto HONEYWELL_TOKEN_PATH = "https://api.honeywell.com/oauth2/token";
22+
23+
constexpr auto kSetPointDesc = "Target temperature ([devicename])";
24+
constexpr auto kHeatingDesc = "Heating Mode([devicename])";
25+
constexpr auto kCoolingDesc = "Cooling Mome([devicename])";
26+
constexpr auto kHeatingStatusDesc = "Heating State ([devicename])";
27+
constexpr auto kCoolingStatusDesc = "Cooling State ([devicename])";
28+
constexpr auto kOutdoorTempDesc = "Outdoor temperature ([devicename])";
29+
constexpr auto kRoomTempDesc = "Room temperature ([devicename])";
30+
constexpr auto kAwayDesc = "Away ([name])";
31+
constexpr auto kfanRequest = "Fan Request ([devicename])";
32+
constexpr auto kcirculationFanRequest = "Circulation Fan Request ([devicename])";
3333

3434
extern http::server::CWebServerHelper m_webservers;
3535

0 commit comments

Comments
 (0)