Tue, 08 Oct 2019 12:55:23 +0200
Renamed pressure to co2meter
main/config.c | file | annotate | diff | comparison | revisions | |
main/task_mqtt.c | file | annotate | diff | comparison | revisions |
--- a/main/config.c Tue Oct 08 12:00:31 2019 +0200 +++ b/main/config.c Tue Oct 08 12:55:23 2019 +0200 @@ -39,7 +39,7 @@ // No configuration yet, create it. esp_efuse_mac_get_default(mac_addr); config.Version = 1; - sprintf(config.hostname, "pressure-%02x%02x%02x", mac_addr[3], mac_addr[4], mac_addr[5]); + sprintf(config.hostname, "co2meter-%02x%02x%02x", mac_addr[3], mac_addr[4], mac_addr[5]); config.mqtt_server[0] = '\0'; config.mqtt_port = 1883; config.mqtt_user[0] = '\0';
--- a/main/task_mqtt.c Tue Oct 08 12:00:31 2019 +0200 +++ b/main/task_mqtt.c Tue Oct 08 12:55:23 2019 +0200 @@ -74,7 +74,7 @@ { char *tmp; - tmp = xstrcpy((char *)"mbv1.0/pressure/"); + tmp = xstrcpy((char *)"mbv1.0/co2meter/"); tmp = xstrcat(tmp, msgtype); tmp = xstrcat(tmp, (char *)"/"); tmp = xstrcat(tmp, config.hostname);