I am having issues with my One Wire program. I am able to scan an iButton and read the correct S/N in serial.print. Well that does not help me if I want to look up that value against another string. How do I convert or change the code so i can save the value in a char string? I dont know if the answer is here because I dont understand it but here is a reference post that may help out in figuring this out.
Thanks again for the help. This is a really great community.
The code is in Hex, and I need it to be a Char string. Reason being, the ibutton serial is going to be read and then stored briefly. Then that iButton S/N will compare to another string that has multiple S/N. Once it finds a match it will record that location then look for the next "," and print anything in between the SN and ","
I do not know how to take it from Serial.print to String
PaulS told you that most of your assumptions are wrong, so you need to rethink your approach. In particular, there is no reason to convert any data received from the iButton. That should be a good start in a new direction.
When reading straight from the iButton, no conversion or anything, you have 3 issues, 1 Not in HEX, When in HEX does not add a 0 for "01" it will be "0" or "0E" would be "E", 3rd issue is, it prints it backwards.