-
Notifications
You must be signed in to change notification settings - Fork 15
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
Connecting to secured accesspoint / using Agent API #4
Comments
I'll keep researching btw. I found someone else with the problem, but doesn't find the solution: Some resort to creating config files (which is how we got it sort of working as well): I'll figure out how to enable connman debugging, that might report something useful. |
What's your connman version? Agent works well on my computer. 2015-01-10 8:33 GMT+08:00 Peter Uithoven [email protected]:
|
Connman version 1.21, I think:
DBus version 1.8.12:
Would other packages be able to influence this? |
Using the agent through connmanctl works fine btw. connmanctl asks for the passphrase and connects properly. |
So I got some help figuring out how to get more debug info (running connman manually with -d and -n). I looks like the agent get registered:
And then on connect:
|
When using it through connmanctl, on connect:
On submitting a passphrase:
|
One big downside (besides having to edit files) is that it takes very long to get feedback when connecting to a network fails. For example when the passphrase is incorrect. This takes much longer compared to connmanctl for example. |
Connman might not accept overriding the path when there is already a path with that name registered. So one thing we could try is changing the path. The path is defined here: Other things we could try:
@cfsghost, what's your version of Connman? What DBUS_SESSION_BUS_ADDRESS environment variable do you use? (We currently use 'unix:path=/run/dbus/system_bus_socket') |
I've been hard at work at improving our fork of jsdx-connman and I'm working on a library that should make controlling wifi much easier. I'll release it soon as a "extension" to jsdx-connman.
But something I'm having trouble with is using the Agent API, so that we for example can connect to secure networks. Your tests/ConnectAP contains some Agent API event handlers, but they never get called. Looking through your code I can't find anything strange (in that particular part at least). But then again I don't have experience with using dbus. And sadly I'm having problems finding resources or examples, I'm afraid the people that are using Node.js, dbus and Connman are scarce.
Any help would be very much appreciated.
The text was updated successfully, but these errors were encountered: