B4J Question ASCII to Astream

besoft

Active Member
Licensed User
Longtime User
Hi

I have a problem that I do not know to solve:

I have a device which I need to send ASCII characters in HEX or DEC format.

The commands are stored in the table. When I read data from a table I get information as string. If I send this device is not responding.

Example:

In the table is written a command string in decimal format: 10 48 50 13 (ESC 0 2 CR) .

How can I send a string to the device in ASCII format?


THX
 

besoft

Active Member
Licensed User
Longtime User
Thanks for the reply

This I know. I need advice how to convert from 10 48 50 13 to: 0x10, 0x48, 0x50, 0x13
 
Upvote 0
Top