I have built a WiFi station (which has a WROVER MCU on board) using ESP-IDF V4.1 which calls the 'tcpip_adapter_set_hostname' within the WIFI_EVENT WIFI_EVENT_STA_START event handler and that seems to be working nicely as I can see the hostname in my home routers list of hostnames, IP address and MAC addresses.
I can then access the device remotely using the hostname.
However after a while (30+ minutes???) the entry in the router seems to be the same (there is a little green indicator next to it that goes off but all of the other information is the same) and the access by hostname stops. I can still access the device using the IP address.
Sometimes the 'light' comes back on and the access by hostname works again. (I am assuming that something is being reset/refreshed and that is probably something within my device but I don't know enough about these things to know what.)
I've set the DHCP server which is also in the router to always give my device the same static IP address but that may change in the future.
What do I need to do in my program to make sure that the hostname access stays active all the time?
Susan
How to keep a DNS entry active
-
- Posts: 45
- Joined: Thu Aug 22, 2019 3:48 am
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 158 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.