Hi,
I'm starting to have a bit more luck with the netduino and VS2012, but have hit an annoying point in my code.
I am using serial.ReadLine(); to read data sent back from the netduino to the pc, but I now need the netduino to also read the information, however I get the error "System.IO.Ports.SerialPort' does not contain a definition for 'ReadLine' and no extension method 'ReadLine' accepting a first argument of type 'System.IO.Ports.SerialPort' could be found (are you missing a using directive or an assembly reference?)"
Now I can't understand why, as the code on the netduino for serial communication is virtually identical to that of the code on the pc-side applicaiton, and that works fine.
This is a seciton of the code that has the error in it
static void serial_DataReceived(object sender, SerialDataReceivedEventArgs e) { // create a single byte array byte[] bytes = new byte[1]; // as long as there is data waiting to be read while (serial.BytesToRead > 0) { theLED.Write(true); Thread.Sleep(500); // read a single byte serial.Read(bytes, 0, bytes.Length); // the bit that doesn't work... theText = serial.ReadLine(); // send the same byte back serial.Write(bytes, 0, bytes.Length); theLED.Write(false); }