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.81k stars 1.38k forks source link

Added getBuffSize() function to BlynkParam class. #511

Closed gfvalvo closed 3 years ago

gfvalvo commented 3 years ago

Description

Added public getBuffSize() function to BlynkParam class. I found this useful when creating classes that inherit from BlynkParam. Having the buffer size allows creating a Copy Constructor for the new class that take a reference to a BlynkParam class object. The object of the inherited class will then be constructed with the same buffer size as the BlynkParam object.

Issues Resolved

Addresses Issue #510 that I recently entered.