mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-11 05:05:35 +00:00
Using predefined buffer
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user