Merge branch 'master' into feature/minor_fixes

This commit is contained in:
Alfonso C. Alvarez 2023-05-07 13:26:02 +02:00 committed by GitHub
commit f52a19a0b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,13 @@ int to_byte_array(const char *in, size_t in_size, uint8_t *out) {
} }
} }
bool verifyPayload (String* line){
if(line->length() == 0) return false;
line->trim();
if(line->isEmpty()) return false;
return true;
}
unsigned long getNextId(unsigned long id) { unsigned long getNextId(unsigned long id) {
if (id == ULONG_MAX) { if (id == ULONG_MAX) {
id = 1; id = 1;