Sending correct results via RS232 [Resolved]
Posted: Mon Aug 08, 2016 11:42 am
Just tryng to send correct result via RS232.
In the Flowcode simulator results are correct from: Results on both hardware and Proteus show the same unexpected results:
Was expecting 62 not 193
At this stage, not putting it down to a bug.
It's probably me not allowing for correct typecasting?
Any idea how to send correct byte value via RS232 please?
Even though using a long for the calculations, expected results will be 0 to 100
So using bytes to save space.
Martin
In the Flowcode simulator results are correct from: Results on both hardware and Proteus show the same unexpected results:
Was expecting 62 not 193
At this stage, not putting it down to a bug.
It's probably me not allowing for correct typecasting?
Any idea how to send correct byte value via RS232 please?
Even though using a long for the calculations, expected results will be 0 to 100
So using bytes to save space.
Martin