unpack-nfc-uid

xod-dev/pn532-nfc/unpack-nfc-uid

Destructs the UID type to bytes If the UID of the tag is longer than 7 bytes, then the first 7 bytes will be here and the rest are cut off
unpack-nfc-uid
@/unpack-nfc-uid
Destructs the UID type to bytes If the UID of the tag is longer than 7 bytes, then the first 7 bytes will be here and the rest are cut off
UID@/nfc-uid
unpack-nfc-uid
OUT1
OUT2
OUT3
OUT4
OUT5
OUT6
OUT7
UID
OUT7byte
OUT6byte
OUT5byte
OUT4byte
OUT3byte
OUT2byte
OUT1byte
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 uid = getValue<input_UID>(ctx);

        emitValue<output_OUT1>(ctx, uid.items[0]);
        emitValue<output_OUT2>(ctx, uid.items[1]);
        emitValue<output_OUT3>(ctx, uid.items[2]);
        emitValue<output_OUT4>(ctx, uid.items[3]);
        emitValue<output_OUT5>(ctx, uid.items[4]);
        emitValue<output_OUT6>(ctx, uid.items[5]);
        emitValue<output_OUT7>(ctx, uid.items[6]);
    }
}