Think carefully about posting unencrypted tag values between devices over a network. Especially where the data is passed in a GET request.
this is part of my academic project.No offence. I want to send only Tags which are in updated in the database. Later on , I want to link database with an android application integrated for monitoring other IoT data based on Smart home
No offence taken. Good luck with your project.
It's hard to figure out the architecture you're dealing with from your question, so I can't answer it directly, but I think your problem will be solved by understanding what those numbers are and how you're using them.
I'm inferring from your question that you're somehow ending up with one of those IDs on the node MCU side (I'm guessing something like 5633763785) and you're trying to convert it to something useful.
I don't know where String.getBytes() is from, so I can only guess on its purpose and implementation, but its name suggests that it will return the actual bytes and multi-bytes of the characters that compose the string.
What you probably want is to convert that string into a number and then you'll be able to extract the bytes of the number, rather than extracting the bytes of the string representing the number.
I want to add and delete rfid tags from nodemcu remotely from php mysql server. As I implemented a database i understood that tag values are sent in string format using the following code
- Rfid tags can be read by mfrc522 if tag values are in a byteArray
- I can send tag values from my server in string format to nodemcu
- But if I typecast the strings to byte array using
String.getByte(byte, sizeof(string)), the tag value is not same as original byte array when read by a rfid reader in real time. would some one provide any suggestions and solutions for this particula scenario.. thanks.