@@ -298,9 +298,8 @@ void loop()
298
298
299
299
## TO DO
300
300
301
- 1 . Same features for other boards using WiFiNINA WiFi shields such as STM32, Teensy, SAM DUE.
302
- 2 . Add MultiWiFi feature to enable reconnect to the best / available WiFi AP.
303
- 3 . Add MultiBlynk feature to enable reconnect to the best / available Blynk Server.
301
+ 1 . Add MultiWiFi feature to enable reconnect to the best / available WiFi AP.
302
+ 2 . Add MultiBlynk feature to enable reconnect to the best / available Blynk Server.
304
303
305
304
306
305
## DONE
@@ -314,6 +313,7 @@ void loop()
314
313
7 . Add configurable Static IP, GW, Subnet Mask IP Addresses.
315
314
8 . Enable dynamic custom data
316
315
9 . Add checksum for more reliable data
316
+ 10 . Same features for other boards using WiFiNINA WiFi shields such as STM32, Teensy, SAM DUE.
317
317
318
318
## Example
319
319
Please take a look at examples, as well.
@@ -428,11 +428,8 @@ uint16_t NUM_MENU_ITEMS = sizeof(myMenuItems) / sizeof(MenuItem); //MenuItemSiz
428
428
#define USE_LOCAL_SERVER true
429
429
430
430
#if USE_LOCAL_SERVER
431
- //char auth[] = "****";
432
- //String BlynkServer = "account.duckdns.org";
433
-
434
- char auth[] = "dpjQumZ-qT8MZnwAUd2F8ZM0DfEM_WCP"; //RFID Gas
435
- String BlynkServer = "khoih.duckdns.org";
431
+ char auth[] = "****";
432
+ String BlynkServer = "account.duckdns.org";
436
433
437
434
//String BlynkServer = "192.168.2.112";
438
435
#else
@@ -443,17 +440,11 @@ String BlynkServer = "blynk-cloud.com";
443
440
#define BLYNK_SERVER_HARDWARE_PORT 8080
444
441
445
442
// Your WiFi credentials.
446
- //char ssid[] = "****";
447
- //char pass[] = "****";
448
-
449
- char ssid[] = "HueNet1";
450
- char pass[] = "jenniqqs";
443
+ char ssid[] = "****";
444
+ char pass[] = "****";
451
445
452
446
#endif
453
447
454
- // Your Megay <-> ESP8266 baud rate:
455
- #define ESP8266_BAUD 115200
456
-
457
448
void heartBeatPrint(void)
458
449
{
459
450
static int num = 1;
@@ -514,6 +505,7 @@ void setup()
514
505
#endif
515
506
}
516
507
508
+ #if USE_BLYNK_WM
517
509
void displayCredentials(void)
518
510
{
519
511
Serial.println("Your stored Credentials :");
@@ -523,11 +515,14 @@ void displayCredentials(void)
523
515
Serial.println(String(myMenuItems[i].displayName) + " = " + myMenuItems[i].pdata);
524
516
}
525
517
}
518
+ #endif
526
519
527
520
void loop()
528
521
{
529
522
Blynk.run();
523
+ check_status();
530
524
525
+ #if USE_BLYNK_WM
531
526
static bool displayedCredentials = false;
532
527
533
528
if (!displayedCredentials)
@@ -546,8 +541,7 @@ void loop()
546
541
}
547
542
}
548
543
}
549
-
550
- check_status();
544
+ #endif
551
545
}
552
546
```
553
547
### New Releases v1.0.1
0 commit comments