Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find any available serial ports from serialportmanager.availablePorts #151

Open
JiahongXue opened this issue Dec 7, 2019 · 0 comments

Comments

@JiahongXue
Copy link

I followed the document and trying to figure out what's the port path. Here is what I did:
ORSSerialPortManager *portManager = [ORSSerialPortManager sharedSerialPortManager]; NSArray *availablePorts = portManager.availablePorts; NSLog (@"Available ports are: %lu", (unsigned long)[availablePorts count]);
And it returned 0 in the console.
I used matlab to double check with serailportlist("available"). And it gives me 6 ports.

Any idea what I could go wrong? Also, is there any way I can check if a serial port is connected after I did [serialPort open];?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant