Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Send Data using SRP_TcpClient
Hi,
I want to communicate with EDC Machine (Credit Card Machine) from OI using SRP_TcpClient.
Below is my code but when I run nothing happened.
Can I use SRP_TcpClient to send data to EDC Machine or Do I miss something ?
My SRP Uilities.dll version is 2.0.2
Data = \0201500130313030303030303031303030303030303030303030303030302020202020202020202020202020202020202020202020303030303030303020202020202020204E2020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020031D\
EncodedData = SRP_Encode(Data, "HEX")
TcpClientHandle = 0
If SRP_TcpClient(TcpClientHandle, "CONNECT", "192.168.10.88", "80") Then
SRP_TcpClient(TcpClientHandle, "SEND", EncodedData)
SRP_TcpClient(TcpClientHandle, "CLOSE")
End
Thank and Regards,
Albert K
I want to communicate with EDC Machine (Credit Card Machine) from OI using SRP_TcpClient.
Below is my code but when I run nothing happened.
Can I use SRP_TcpClient to send data to EDC Machine or Do I miss something ?
My SRP Uilities.dll version is 2.0.2
Data = \0201500130313030303030303031303030303030303030303030303030302020202020202020202020202020202020202020202020303030303030303020202020202020204E2020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020031D\
EncodedData = SRP_Encode(Data, "HEX")
TcpClientHandle = 0
If SRP_TcpClient(TcpClientHandle, "CONNECT", "192.168.10.88", "80") Then
SRP_TcpClient(TcpClientHandle, "SEND", EncodedData)
SRP_TcpClient(TcpClientHandle, "CLOSE")
End
Thank and Regards,
Albert K
Comments
Now the SRP_TcpClient works perfectly. Thanks. Awesome tool.