Answer the question
In order to leave comments, you need to log in
What are c++ data types?
Hello,
tell me what's the matter and how to simplify my rewards?
there is a variable uint8_t buffer
;
and to compare it with my string this is what I need to do
String bff(reinterpret_cast<char*>(buffer));
char *cm1 = "blahblahblah";
String cmd1(cm1);
if (bff == cmd1){ ... }
Answer the question
In order to leave comments, you need to log in
1) uint8_t buffer or uint8_t *buffer?
2) if the latter, then use the memcmp function.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question