Android Question Socket Issue

aaronk

Well-Known Member
Licensed User
Longtime User
Hello,

Is there a updated version of the Network library or I am not sure if anyone has seen this before...

When sending a ASCII message using the Network Library it sends the commands fine, and receives the reply's fine, but I am getting (sometimes) is ~c-65536:messageHERE

The red text above appears sometimes when it shouldn't. I believe this is something to do with the app or Network Library not the device I am connected to as I can view the Log the device is sending and that is not in the Log, but is in the B4A Log (as I am logging everything I am sending and receiving in B4A)

The black bold text is the message I sent to my device.

Anyone else had the same issue or know if there is any updated version that I have missed of the Network Library?

I am using 1.24 of the Network Library.
 

aaronk

Well-Known Member
Licensed User
Longtime User
Hi Erel,

This text: ~c-65536:messageHERE is the actual message the IDE is showing in the Log. (after writing the reply to the Log)

I only changed the colour to show what shouldn't be displaying. MessageHERE should be the only message displaying where the ~c-65536: should not be there.

However, having ~c-65536: in the reply, is enough for my app to play up as my app would be looking for the start of the command and since ~c-65536: is not what it is looking for it will ignore that message and move on where it needs the messageHERE part to be able to move on.

Like I said, it only happens here and there, doesn't happen all the time (1 out of 10 times it happens).
The only way I can think of getting past this is to have a timer running every 3 seconds and for that timer to send the same command if no reply has been received.
 
Upvote 0
Top