Using predefined buffer

This commit is contained in:
Indu Prakash
2022-10-07 20:09:28 -05:00
parent 8a0b93c332
commit e549b94ffd

View File

@ -91,9 +91,8 @@ cJSON *hass_build_device_node(cJSON *ids) {
cJSON_AddStringToObject(dev, "mf", MANUFACTURER); //manufacturer
cJSON_AddStringToObject(dev, "mdl", PLATFORM_MCU_NAME); //Using chipset for model
char *url[128]; //HAL_GetMyIPString is 64
sprintf(url,"http://%s/index",HAL_GetMyIPString());
cJSON_AddStringToObject(dev, "cu", url); //configuration_url
sprintf(g_hassBuffer,"http://%s/index",HAL_GetMyIPString());
cJSON_AddStringToObject(dev, "cu", g_hassBuffer); //configuration_url
return dev;
}