You probably need something like:
...
if (success && !strncmp(uid,{ 0x04, 0xEC, 0x89, 0x32, 0x55, 0x42, 0x80 },8)) {
Your '=' tries to do an assignment.
You probably need something like:
...
if (success && !strncmp(uid,{ 0x04, 0xEC, 0x89, 0x32, 0x55, 0x42, 0x80 },8)) {
Your '=' tries to do an assignment.