liamw9534 / pyconnman

A library for managing network connectivity using Python, ConnMan and DBus
Apache License 2.0
11 stars 11 forks source link

Invalid Arguements #1

Open joesolly opened 8 years ago

joesolly commented 8 years ago

I've been trying to resurrect this code and I'm having trouble using the agent to get WPA connections working. I've been able to successfully use the node.js version of connman so I know it's not the network. I'm getting an Invalid Arguments as described here: https://github.com/liamw9534/pyconnman/blob/master/pyconnman/service.py#L421, but I don't know what arguments would be invalid. I've logged just about everything and when a Passcode is requested, it properly responds with the correct passcode, it just seems to be in an invalid format. Any thoughts or advice would be much appreciated!

liamw9534 commented 7 years ago

I presume you have registered an agent instance for doing the authentication? If you don't then you will get an exception raised.

Another thing to try is to use the command-line tool connmanctl and check that you can make connections through this tool. It is useful for verifying your steps. It has a built-in agent that can be enabled and prompts for a wifi passcode on the command-line.