Jump to content
Sign in to follow this  
dexto

TCPSend

Recommended Posts

dexto

Is there a way to make sure TCPSend will not encode "0x3132" for example into "0x307833313332" which is binary for "0x3132'?

Share this post


Link to post
Share on other sites
JohnOne

I dont know, I get confused with all that malarky.

I see binary writen as 0x356685e44288 etc... which looks same as hex, but I always was led to believe that binary was 0s and 1s 1100101100 etc.. :)


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
dexto

Are you sending it as a string "0x3132" or 0x3132 ?

That might be the issue... let me dig in the code a little.

Edit:

Wouldn't 0x3132 be interpreted as hex?

EDIT:

isBinary saves the day. Thanks

if not IsBinary($data) then $data=Binary($data)
Edited by dexto

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.