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

[Question] check if wifi connected #26

Closed
biboc opened this issue Jul 25, 2016 · 8 comments
Closed

[Question] check if wifi connected #26

biboc opened this issue Jul 25, 2016 · 8 comments

Comments

@biboc
Copy link

biboc commented Jul 25, 2016

Hi,

I set the configuration of 7688 to connect wifi to another router (B). How can I check that the board is really connected to B? (from CLI)
I know the board is connected because I see it on B dashboard but I need to know from the board.

Also, it is very slow to connect to another router (around 20secs), is it normal?

Cheers,

@biboc
Copy link
Author

biboc commented Aug 16, 2016

PING

@blogic
Copy link
Contributor

blogic commented Aug 17, 2016

there is currently no way to tell via cli and 20s is the timeout of the cli tool to verify if the station assoced.

@blogic blogic closed this as completed Aug 17, 2016
@biboc
Copy link
Author

biboc commented Aug 17, 2016

Thanks for your answer.
Is there another way then? Is it planned to add it in the next release?

@blogic
Copy link
Contributor

blogic commented Aug 17, 2016

you can very easily modify the ap_client tool to add this feature. when you have a patch ready post it please so others can use it aswell

@biboc
Copy link
Author

biboc commented Aug 17, 2016

I see, I need to use this command: iwpriv apcli0 show connStatus ? So I need to edit the iwpriv function in ap_client.
Thing is the output goes not on terminal, it goes to some logs and I don't see how to get them from ap_client, any idea?

@blogic
Copy link
Contributor

blogic commented Aug 17, 2016

as i replied earlier, the easiest way is to patch ap_client.c

@biboc
Copy link
Author

biboc commented Aug 17, 2016

Yes I know, I'll ad a command to ap_client to call this function because IMO "show connStatus" is the only way to check if ap_client is connected, right?
I'll try but I'm afraid that I won't get the output when I'll call the ioctl, don't you think?

@biboc
Copy link
Author

biboc commented Aug 17, 2016

Ok check_assoc may be much easier

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

2 participants