mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
refactor device value rendering (to Web, Console or MQTT) to base class #632
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// compare_flash_string added by Proddy
|
||||
|
||||
#ifndef UUID_COMMON_H_
|
||||
#define UUID_COMMON_H_
|
||||
|
||||
@@ -32,6 +34,21 @@
|
||||
*/
|
||||
namespace uuid {
|
||||
|
||||
/**
|
||||
* String compare two flash strings
|
||||
*
|
||||
* The flash string must be stored with appropriate alignment for
|
||||
* reading it on the platform.
|
||||
*
|
||||
* @param[in] a Pointer to string stored in flash.
|
||||
* @param[in] b Pointer to string stored in flash.
|
||||
* @param[in] n optional max length
|
||||
* @return 0 for match, otherwise diff
|
||||
* @since 1.0.0
|
||||
*/
|
||||
int compare_flash_string(const __FlashStringHelper * a, const __FlashStringHelper * b);
|
||||
int compare_flash_string(const __FlashStringHelper * a, const __FlashStringHelper * b, size_t n);
|
||||
|
||||
/**
|
||||
* Read a string from flash and convert it to a std::string.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user