esp-mesh-lite
esp-mesh-lite copied to clipboard
mesh_lite upgrade v1.0.0 wifi_prov_mgr compilation exception (AEGHB-778)
Hi
use mesh_lite v1.0.0 version
After compiling, the following error will appear. What is the reason? After upgrading, an error is reported. I originally used v0.10.3 to upgrade to v1.0.0 version, through the configuration file:
espressif/mesh_lite: ">=1.0.0"
The latest mesh_lite version of components.espressif.com
is only v1.0.0
. When will v1.0.1
be updated?
E:/MyProject/IoT/PlatformIO-ESP/esp-data-collect/mesh-lite-terminal/managed_components/espressif__mesh_lite/src/wifi_prov/wifi_prov_mgr.c:203:17: error: 'strncpy' output may be truncated copying 32 bytes from a string of length 39 [-Werror=stringop-truncation]
203 | strncpy((char*)wifi_prov_mgr_mesh_lite_cfg.ssid, softap_ssid, sizeof(wifi_prov_mgr_mesh_lite_cfg.ssid));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:/MyProject/IoT/PlatformIO-ESP/esp-data-collect/mesh-lite-terminal/managed_components/espressif__mesh_lite/src/wifi_prov/wifi_prov_mgr.c:196:17: error: 'strncpy' output may be truncated copying 32 bytes from a string of length 39 [-Werror=stringop-truncation]
196 | strncpy((char*)wifi_prov_mgr_mesh_lite_cfg.ssid, softap_ssid, sizeof(wifi_prov_mgr_mesh_lite_cfg.ssid));