Kevin Well-Known Member Licensed User Longtime User Nov 28, 2012 #1 I am trying to control a device that I don't have so I asked another app's author for some help. Apparently to send commands all I need to do is send raw text to the socket. I asked him if I need to follow up the raw text with a Chr(13) or Chr(10) or both and he said: use out.println(strout1); Click to expand... Unfortunately I don't really know how "out.println()" works in Java, so it doesn't really answer my question. I'd prefer to sound stupid here rather than ask him any more stupid questions. Is he saying I don't need to follow up the string (text) with anything, or does out.printIn() automatically append a Chr(13) and/or Chr(10)? I did something similar with another device that used raw text commands and that one needed a Chr(13) after it. Since I have no way of testing this, I'd like to just get it right the first time if possible.
I am trying to control a device that I don't have so I asked another app's author for some help. Apparently to send commands all I need to do is send raw text to the socket. I asked him if I need to follow up the raw text with a Chr(13) or Chr(10) or both and he said: use out.println(strout1); Click to expand... Unfortunately I don't really know how "out.println()" works in Java, so it doesn't really answer my question. I'd prefer to sound stupid here rather than ask him any more stupid questions. Is he saying I don't need to follow up the string (text) with anything, or does out.printIn() automatically append a Chr(13) and/or Chr(10)? I did something similar with another device that used raw text commands and that one needed a Chr(13) after it. Since I have no way of testing this, I'd like to just get it right the first time if possible.
Erel B4X founder Staff member Licensed User Longtime User Nov 29, 2012 #2 It adds Chr(10) to the line. Upvote 0