Shop OBEX P1 Docs P2 Docs Learn Events
Hex data conversion question. — Parallax Forums

Hex data conversion question.

WookieWookie Posts: 27
edited 2010-01-08 16:22 in Propeller 1
Forum,

First off, thanks to everyone whom has helped me in the past around here. This forum has been invaluable.

My question revolves around hex data strings. I am receiving 64 bit identity data from several 1-wire temp devices. I would like to match these to constants I have defined at the top of my program. I can display the serial number by using "debug.hex(long [noparse][[/noparse]addr] ,8" and see the hex char's "8F917A28", but when I try to match this to the same ID defined in my constants section "$8F917A28", by using the == function, I don't have a successful match. How do I convert this data so I can compare it to a constant so I can use an if, else routine to make a decision in the software? I would publish my code, but I am away from my work machine.

Thanks for your help!

Comments

Sign In or Register to comment.