Skip to content

WiFi.setHostname() not working #6278

Closed
Closed
@dsilletti

Description

@dsilletti

Board

ESP32

Device Description

plain module

Hardware Configuration

N/A

Version

latest master

IDE Name

Arduino IDE

Operating System

macOS 12.1

Flash frequency

40Mhz

PSRAM enabled

no

Upload speed

115200

Description

WiFi.setHostname() does not work, hostname remain always esp32-XXXXXX

Sketch

WiFi.disconnect(true,true);
delay(1000);
WiFi.mode(WIFI_STA);
esp_wifi_set_country_code("IT", true);
WiFi.setHostname("hostname");

Debug Message

N/A

Other Steps to Reproduce

WiFi.setHostname("hostname");

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions