Hello everyone..
I have the following query I am using
status = mfrc522.MIFARE_Write (block, buffer, 16);
How can I convert a string into a buffer, in other words I want to convert a string to a byte to be able to write it to card
Hello everyone..
I have the following query I am using
status = mfrc522.MIFARE_Write (block, buffer, 16);
How can I convert a string into a buffer, in other words I want to convert a string to a byte to be able to write it to card
Hi Dickson4,
we (the other forum-members) need additional information to help you.
the short information (that won't help you very much) is
"choose the right casting-function."
This short info is as short as your question. But doesn't hep at all.
It just rises new questions:
So we (the other forum-members) need additional information from you.
Where is the string? How many characters does your string have?
you posted a single line of code
status = mfrc522.MIFARE_Write (block, buffer, 16);
the name of the variables "buffer" and the number 16 seems to indicate that multiple bytes should be written.
What is the meaning of the parameters "block", "buffer" and the number "16" ?
What dataTYPE do these parameters have?
what is the exact name of the RFID-library you are using?
you can answer most of these questions by just posting your whole program (the whole sketch.
really from the very first to the very last line. If you use the "insert code"-button "<|>" in the left upper corner of the reply-menu the code stays formatted for easier readability
best regards
Stefan