You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 25, 2021. It is now read-only.
If it cannot connect to the Blynk server in 30 seconds, it will switch to `Configuration Mode`. You will see your built-in LED turned ON. In `Configuration Mode`, it starts an access point called `ESP_xxxxxx`. Connect to it using password `MyESP_xxxxxx` .
59
77
@@ -73,7 +91,8 @@ This `Blynk.begin()` is not a blocking call, so you can use it for critical func
73
91
Anyway, this is better for projects using Blynk just for GUI (graphical user interface).
74
92
75
93
In operation, if WiFi or Blynk connection is lost, `Blynk.run()` will try reconnecting automatically. Therefore, `Blynk.run()` must be called in the `loop()` function. Don't use:
76
-
```
94
+
95
+
```cpp
77
96
voidloop()
78
97
{
79
98
if (Blynk.connected())
@@ -83,7 +102,8 @@ void loop()
83
102
}
84
103
```
85
104
just
86
-
```
105
+
106
+
```cpp
87
107
voidloop()
88
108
{
89
109
Blynk.run();
@@ -144,15 +164,31 @@ Please take a look at examples, as well.
144
164
145
165
void setup()
146
166
{
147
-
Blynk.begin();
167
+
// Use this to default DHCP hostname to ESP8266-XXXXXX or ESP32-XXXXXX
168
+
//Blynk.begin();
169
+
// Use this to personalize DHCP hostname (RFC952 conformed)
170
+
// 24 chars max,- only a..z A..Z 0..9 '-' and no '-' as last char
171
+
Blynk.begin("Personalized-HostName");
148
172
}
149
173
150
-
151
174
void loop()
152
175
{
153
176
Blynk.run();
154
177
}
155
178
```
179
+
### Releases v1.0.4
180
+
181
+
***Why this version***
182
+
183
+
I'm really fed-up with the unfriendly, confusing and cryptic DHCP hostnames such as `ESP_XXXXXX`, `espressif` using ChipID. Thanks to an issue opened in library ESP_WiFiManager, I decided to add this option to have built-in, yet configurable DHCP hostname to these libraries.
184
+
185
+
Now you can easily specify and have the friendly, identifiable, RFC-952-conformed DHP hostnames associated with your boards, such as `SmartFarm-1`, `Irrigation`, `Master-Controller`, etc. You'll be happier to have a look at your WiFi Router DHCP list.
186
+
187
+
***New in this version***
188
+
189
+
1. Add configurable personalized RFC-952 DHCP hostname and setHostname()
0 commit comments