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 Feb 9, 2022. It is now read-only.
If it detects no valid stored Credentials or 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 a WiFi access point called ***ESP_xxxxxx***. Connect to it using password ***MyESP_xxxxxx***.
195
+
196
+
You can set:
197
+
198
+
1. static Config Portal IP address by using `Blynk_WF.setConfigPortalIP(IPAddress(xxx, xxx, xxx, xxx))`
199
+
2. random Config Portal WiFi channel by using `Blynk_WF.setConfigPortalChannel(0)`
200
+
3. selected Config Portal WiFi channel by using `Blynk_WF.setConfigPortalChannel(channel)`
/////// // End dynamic Credentials ///////////#define USE_DYNAMIC_PARAMETERS true
218
+
Then click ***Save***. After the board auto-restarted, you will see if it's connected to your Blynk server successfully.
219
+
220
+
221
+
This `Blynk.begin()` is not a blocking call, so you can use it for critical functions requiring in loop().
222
+
Anyway, this is better for projects using Blynk just for GUI (graphical user interface).
223
+
224
+
In operation, if GSM/GPRS or Blynk connection is lost, `Blynk_WF.run()` or `Blynk_GSM.run()` will try reconnecting automatically. Therefore, `Blynk_WF.run()``Blynk_GSM.run()` and must be called in the `loop()` function. Don't use:
225
+
226
+
```cpp
227
+
voidloop()
228
+
{
229
+
if (Blynk.connected())
230
+
Blynk_WF.run();
231
+
232
+
...
233
+
}
234
+
```
235
+
just
236
+
237
+
```cpp
238
+
voidloop()
239
+
{
240
+
Blynk_WF.run();
241
+
...
242
+
}
243
+
```
244
+
245
+
## Example [TTGO_TCALL_GSM](examples/TTGO_TCALL_GSM)
246
+
Please take a look at other examples, as well.
247
+
248
+
```
249
+
#ifndef ESP32
250
+
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
251
+
#endif
252
+
253
+
#define BLYNK_PRINT Serial
254
+
#define BLYNK_HEARTBEAT 60
255
+
256
+
// TTGO T-Call pin definitions
257
+
#define MODEM_RST 5 // Pin D5 mapped to pin GPIO5/SPISS/VSPI_SS of ESP32
258
+
#define MODEM_PWKEY 4 // Pin D4 mapped to pin GPIO4/ADC10/TOUCH0 of ESP32
259
+
#define MODEM_POWER_ON 23 // Pin D23 mapped to pin GPIO23/VSPI_MOSI of ESP32
260
+
#define MODEM_TX 27 // Pin D27 mapped to pin GPIO27/ADC17/TOUCH7 of ESP32
261
+
#define MODEM_RX 26 // Pin D26 mapped to pin GPIO26/ADC19/DAC2 of ESP32
262
+
#define I2C_SDA 21 // Pin D21 mapped to pin GPIO21/SDA of ESP32
263
+
#define I2C_SCL 22 // Pin D22 mapped to pin GPIO22/SCL of ESP32
1. Change Synch XMLHttpRequest to Async to avoid ["InvalidAccessError" DOMException](https://xhr.spec.whatwg.org/)
573
688
2. Reduce memory usage.
574
689
690
+
## TO DO
691
+
692
+
1. Same features for other boards with GSM/GPRS shield as well as other GSM/GPRS shields (SIM7x00, etc.).
693
+
694
+
## DONE
695
+
696
+
1. Permit EEPROM size and location configurable to avoid conflict with others.
697
+
2. More flexible to configure reconnection timeout.
698
+
3. For fresh config data, don't need to wait for connecting timeout before entering config portal.
699
+
4. If the config data not entered completely (APN, GPRS User, GPRS Pass, Server, HardwarePort and Blynk token), entering config portal
700
+
5. Better Cofig Portal GUI
701
+
6. WiFi Password max length is 63, according to WPA2 standard.
702
+
7. Permit to input special chars such as ***%*** and ***#*** into data fields.
703
+
8. Dynamic custom parameters
704
+
575
705
### Contributions and thanks
576
706
577
707
1. Thanks to [Mike Kranidis](https://community.blynk.cc/u/mikekgr) and [Mike Kranidis @ GitHub](https://github.com/mikekgr) for initial testing the library and giving reasons, advices to start this library.
0 commit comments