Jump to content

Recommended Posts

Posted

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

Posted (edited)

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

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
×
×
  • Create New...