E
Empi
Hi.
I have a project on which I use SPP.
I open a serial port that is actually a BT serial port.
Since moving to standby mode kill the connection, I have to reinitiate it by
closing and reopening the port.
All this is quite messy since it take ages to detect that comm was lost,
close the port and reopen it.
(Not to talk about pairing loss that occur from time to time, but this is
another topic...).
My question is, is there a way to make the close port faster?
It takes about 14 seconds to finish...
I use
[DllImport ("coredll.dll")]
private static extern int CloseHandle(int hObject);
To close it.
Am I doing anything wrong?
Should I flush first?
Kill my object and recreate it?
Thank you very much.
Empi
I have a project on which I use SPP.
I open a serial port that is actually a BT serial port.
Since moving to standby mode kill the connection, I have to reinitiate it by
closing and reopening the port.
All this is quite messy since it take ages to detect that comm was lost,
close the port and reopen it.
(Not to talk about pairing loss that occur from time to time, but this is
another topic...).
My question is, is there a way to make the close port faster?
It takes about 14 seconds to finish...
I use
[DllImport ("coredll.dll")]
private static extern int CloseHandle(int hObject);
To close it.
Am I doing anything wrong?
Should I flush first?
Kill my object and recreate it?
Thank you very much.
Empi