I am having an issue with the following code:
SerialPort^ com = gcnew SerialPort("COM1", 9600); array<unsigned char>^ messageBuf = gcnew array<unsigned char>(512); com->Open(); com->Read(messageBuf, 0, 512); com->Close();
messageBuf is not being filled with anything. I know the port is open cause writing works fine. Any ideas why this is?