Hi to all.
I am workong on  a project to retrieve data that has been sent from a
GSM module to my PC via GPRS.
I am using Socketwrench visual edition(is this the best option?)
I can't get the OnRead event to fire when data comes into the PC. Any
idea
what needs to be setup for this to work.

I have a Socket defined like this
  Dim WithEvents Socket As New SocketWrench

it initialises with no error.

in the Form Load handler I have:
 Socket.Enabled = True
 Socket.Blocking = False
 Socket.Listen("192.168.40.194", 80)

I have 2 subroutines  , with nothing in them yet.
 Sub Socket_OnRead()
 Sub Socket_OnAccept()


If I connect with Hyperterminal , it connects fine. If my VB code is
not running , Hyperterminal return an error
, so I know my code seems to be establishing a connection.
I just can't get any data out , and I'm a bit stuck.
I'm net to Socketwrench , and fairly new to VB.net , so I may be
missing something obvious :0(
Cny help appreciated.
cheers
Rob

Reply via email to