openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.48k stars 279 forks source link

Use a configured ShortName for DHCP requests #860

Open tsybulin opened 1 year ago

tsybulin commented 1 year ago

Describe the bug Currently, DHCP requests use the auto-generated hostname (which does not carry a semantic load and makes it difficult to find the device in the list)

dhcp_leases

instead of the short name specified in the configuration

config_names

Firmware:

openshwprojects commented 1 year ago

Hello, it seems like a BL602 issue. For Beken, we have it implemented: image So basically we need to look into BL602 SDK and figure out how to change the host name.

ataa commented 9 months ago

Found this in Ai Thinker WB2 (Bl602) SDK, can we use this to change the default hostname to device name?

Screenshot 2024-02-01 at 13-28-38 Ai-Thinker-WB2_components_network_wifi_manager_bl60x_wifi_driver_wifi c at c86f5aed43fd1b9bd1918e9bd76ed561a13c9120 · Ai-Thinker-Open_Ai-Thinker-WB2

https://github.com/Ai-Thinker-Open/Ai-Thinker-WB2/blob/c86f5aed43fd1b9bd1918e9bd76ed561a13c9120/components/network/wifi_manager/bl60x_wifi_driver/wifi.c#L205