How to send a Hexadecimal number using app inventor ?

654 views
Skip to first unread message

pavankumar kavvuri

unread,
Nov 21, 2015, 1:54:04 AM11/21/15
to MIT App Inventor Forum
So far I have been working in this platform to send a Hexadecimal number . I am struggling whether to send a hexadecimal number as a text and convert into number on the other side  or send the actual decimal value and the convert it into hex. I need to send two hexadecimal numbers as pair- for example :FF629D and FFFFFFFF  as a pair.

I hope someone in this field could help me.
Thanks in Advance.!!!!!


Regards,
PavanKumar K


MartynC

unread,
Nov 21, 2015, 3:26:55 AM11/21/15
to mitappinv...@googlegroups.com
Aren't all numbers hexadecimal until you display them?


You don't say how you are sending or from where you are sending but assuming something regular my solution would be 

1. break the value into 3 separate values. For example FF629D becomes FF, 62, and 9D.
2. convert to a string and send as ascii.

If speed and volume of data is not an issue my preference would #2




Reply all
Reply to author
Forward
0 new messages