by tiveria » Wed 24. Aug 2011, 20:22
Well your ui doesn*t fit my needs. In parallel i have tried to use the asci interface of the server, but even there i have some trouble.
sending first a ASCI
and then a Alearn
i would expect after a button press something like
** 00123 LEAR HEXCODE
but i get
**00057 RCV_COD S00000000111111110110100010010111320,0,0 for unknown buttons
and
**00030 RCV_COM test,test,0,0 for already learned ones.
i'm really getting desperate as i have to develop an application but have to many problems because of the lack of documentation.
btw. here is the code for the tcp stuff:
TcpClient client = new TcpClient("localhost", 21000);
if (client.Connected)
{
NetworkStream stream = client.GetStream();
Byte[] data = System.Text.Encoding.ASCII.GetBytes("ASCI");
stream.Write(data, 0, data.Length);
String responseData = String.Empty;
data = System.Text.Encoding.ASCII.GetBytes("Alearn\r\n");
stream.Write(data, 0, data.Length);
// Buffer to store the response bytes.
data = new Byte[256];
// String to store the response ASCII representation.
responseData = String.Empty;
// Read the first batch of the TcpServer response bytes.
Int32 bytes = stream.Read(data, 0, data.Length);
responseData = System.Text.Encoding.ASCII.GetString(data, 0, bytes);
Console.WriteLine("Received: {0}", responseData);
}