I have a device where the remote control service is a TCP/IP channel and the server is listening on port 50000 of the PC where the device software application is running.
It’s working with some Python code but do you think it’s could be possible to clone the python code below directly in HTBasic language ?
def BuildMsg(msgid, msgbody):
# this function takes the raw msg ID and the raw msg body
# and wraps it in the expected token syntax:
# <MSG_ID>msg body<EOM>
return ‘<‘ + msgid + ‘>’ + msgbody + ‘<EOM>’
if __name__ == ‘__main__’:
s = socket.socket()
print(“\nDevice not connected !!!”)