Let me rephrase my question How do you convert a long int into a char?
-
I am making a code for the gps to send the lat and lon to another arduino via transmitter and receiver. however the virtualwire only sends char and not long int or float. how do I ...show more
-
Answer:
A char is one byte. Is the number you're sending more than one byte? If it isn't, you should be able to cast the long/int and send it. (see link) If it is more than one byte, you will need to devise some way to encode it into multiple bytes. A simple way is to send mod(256) the number, then divide by 256 and repeat.
DJAJY73FROGL7CMCGQ7URNKHRU at Yahoo! Answers Visit the source
Related Q & A:
- How do I convert a PDF file to PDF/A in Delphi?Best solution by softwarerecs.stackexchange.com
- How can I convert a string number to a number in Perl?Best solution by Stack Overflow
- How do you convert a windows movie maker file to a regular video file?Best solution by Yahoo! Answers
- How to convert a DC locomotive to a DCC locomotive?Best solution by Yahoo! Answers
- How to convert a .DMG file into a .EXE?Best solution by answers.yahoo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.