-
Notifications
You must be signed in to change notification settings - Fork 56
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
First use of t2 ap
, if over USB, will fail
#475
Comments
So could this be more of an issue with the USBProcess than the |
@HipsterBrown after thinking about this for a bit, I think the I've started a PR here.
|
@johnnyman727 Awesome. I'll try it out tonight. |
@HipsterBrown did you get a chance to try this out? |
Not yet. I will be trying it out this week though.
|
I updated a fresh T2 up to
0.0.6
. Note that the wireless config files (related tot2 ap
) won't actually be overwritten by OpenWRT going from (sub0.0.6
, when we add the functionality, to0.0.6
) so you'd have to manually reset them to their original default state if you've already usedt2 ap
).Running
t2 ap -n SSID -p PASS
results in a failure if it's run over USB:The reason is because the CLI attempts to fetch the SSID of the access point network which, since this is a fresh install, doesn't exist yet. If you run the command on T2 itself, you'll see that it emits an error message and the error code is non-zero:
The USB Process that's running the command notices the exit code of 1, interprets it as an error and because there is nothing there to catch it, the error is thrown and process is aborted.
The question here is how the USBProcess should handle an error. I'm not convinced just emitting an error is the right way to go.
Also, the Access Point logic will need to check for a non-existent SSID.
The text was updated successfully, but these errors were encountered: