Commit 110a1a8a authored by Eric Duminil's avatar Eric Duminil
Browse files

Rename

parent 11b36705
Pipeline #5800 passed with stage
in 2 minutes and 25 seconds
...@@ -84,7 +84,7 @@ void wifiConnected() { ...@@ -84,7 +84,7 @@ void wifiConnected() {
void wifiFailed() { void wifiFailed() {
Serial.print(F("WiFi - Could not connect to ")); Serial.print(F("WiFi - Could not connect to "));
Serial.println(config::current_ssid()); //TODO: Rename Serial.println(config::selected_ssid()); //TODO: Rename
led_effects::showKITTWheel(color::red); led_effects::showKITTWheel(color::red);
} }
/***************************************************************** /*****************************************************************
......
...@@ -201,7 +201,7 @@ namespace mqtt { ...@@ -201,7 +201,7 @@ namespace mqtt {
char payload[75]; // Should be enough for info json... char payload[75]; // Should be enough for info json...
const char *json_info_format = PSTR("{\"local_ip\":\"%s\", \"ssid\":\"%s\"}"); const char *json_info_format = PSTR("{\"local_ip\":\"%s\", \"ssid\":\"%s\"}");
snprintf(payload, sizeof(payload), json_info_format, wifi::local_ip, config::current_ssid()); snprintf(payload, sizeof(payload), json_info_format, wifi::local_ip, config::selected_ssid());
mqttClient.publish(info_topic, payload); mqttClient.publish(info_topic, payload);
} }
......
...@@ -286,7 +286,7 @@ namespace web_config { ...@@ -286,7 +286,7 @@ namespace web_config {
*/ */
namespace config { namespace config {
char* current_ssid() { char* selected_ssid() {
return web_config::iotWebConf->getWifiSsidParameter()->valueBuffer; return web_config::iotWebConf->getWifiSsidParameter()->valueBuffer;
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#endif #endif
namespace config { namespace config {
char* current_ssid(); char* selected_ssid();
// Sensor // Sensor
extern uint16_t &measurement_timestep; // [s] Value between 2 and 1800 (range for SCD30 sensor). extern uint16_t &measurement_timestep; // [s] Value between 2 and 1800 (range for SCD30 sensor).
extern uint16_t &altitude_above_sea_level; // [m] extern uint16_t &altitude_above_sea_level; // [m]
......
...@@ -41,7 +41,7 @@ namespace wifi { ...@@ -41,7 +41,7 @@ namespace wifi {
Serial.print(F("WiFi - Local IP : ")); Serial.print(F("WiFi - Local IP : "));
Serial.println(wifi::local_ip); Serial.println(wifi::local_ip);
Serial.print(F("WiFi - SSID : ")); Serial.print(F("WiFi - SSID : "));
Serial.println(config::current_ssid()); Serial.println(config::selected_ssid());
} }
void defineCommands() { void defineCommands() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment