BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Heartbeat timeout - Using RTC and Neopixels

#1

Hey everyone,

Has anyone every experienced heartbeat timeout when using either the NeoMatrix library combined with RTC and Time library by Paul Stoffregen?

I have 2 Wemos D1 mini’s, connected to the same AP, WordClock one drops out, Toolbox Lock one stays connected.

There are no blocking functions in my code, just a check every 1001L milliseconds to update time.
Neopixels are only updated if the minute changes.

Libraries:

Adafruit NeoPixels: 1.2.3 https://github.com/adafruit/Adafruit_NeoPixel
Adafruit NeoMatrix: 1.1.2 https://github.com/adafruit/Adafruit_NeoMatrix
Adafruit GFX: 1.5.5 https://github.com/adafruit/Adafruit-GFX-Library
Time: 1.5 https://github.com/PaulStoffregen/Time

WordClock headers:

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <TimeLib.h>
#include <WidgetRTC.h>
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>

Toolbox Lock headers:

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <Servo.h>

Screenshots showing uptime:

1 Like

#2

I appear to have solved this.
I previously didn’t have any code to reconnect in case of a dropout as I am not using Blynk.begin();

So after a quick search, I found that @rotarucosminleonard had created a sketch that checks for WiFi dropouts and to re-connect if it does.
Said sketch is here.

I could have created my own but I tried it and it works perfectly :wink: - Thanks @rotarucosminleonard

3 Likes