equal(nfc-uid)

xod-dev/pn532-nfc/equal(nfc-uid)

Compares two UIDs
equal(nfc-uid)
@/equal(nfc-uid)
Compares two UIDs
IN1@/nfc-uid
IN2@/nfc-uid
equal(nfc-uid)
IN1
IN2
OUT
OUTboolean
To use the node in your project you should have the xod-dev/pn532-nfc library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

node {
    void evaluate(Context ctx) {
        auto uidA = getValue<input_IN1>(ctx);
        auto uidB = getValue<input_IN2>(ctx);
        bool eq = memcmp(uidA.items, uidB.items, sizeof(uidA.items)) == 0;
        emitValue<output_OUT>(ctx, eq);
    }
}