blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.83k stars 1.39k forks source link

Heartbeat #375

Closed mpo881 closed 6 years ago

mpo881 commented 6 years ago

Blynk library version: any IDE: Particle IDE version: [...] Board type: Electron Additional modules: [...]

Scenario, steps to reproduce

I am modifying the heartbeat from 10 to whatever works with my project. Data overhead to run Blynk is very high at 10s heartbeat.

Expected Result

I would like to be able to modify #define BLYNK_HEARTBEAT in my code without having to copy and paste every tab of the library into my project just to change a few numbers on one line of BlynkConfig.h Would it be possible to make the line in the config file a variable so that you can easily edit the line in your code? Thank you

Actual Result

You must copy and paste each tab. Very time consuming, cumbersome and prone to mistakes!

vshymanskyy commented 6 years ago

Thanks, I'll re-check it

vshymanskyy commented 6 years ago

Specifying #define BLYNK_HEARTBEAT 30 before any of Blynk includes - absolutely works! Can be verified by BLYNK_DEBUG