Hi,
I am using the below code in my console application to send data to my Netduino through serial port:
static SerialPort port = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One);port.Open();string message = "ON";byte[] bytes = Encoding.UTF8.GetBytes(message);port.Write(bytes, 0, bytes.Length);port.Close();
The above code is working fine but only once i.e. when I send a string to my Netduino for the first time it turns on the onboard LED but when I try to send the string for the second time it does nothing!!
Also if I try Putty or TeraTerm to send string to my Netduino it works just fine. Is it something I am missing
I am using Hari's code on my Netduino: http://forums.netdui...rt-code-review/