Hi Frederick,
Ready means that your connection has received full IP configuration (most likely from
dhcp).
Online is (by default) achieved by ConnMan making an http get request to:
#define STATUS_URL_IPV4 "http://ipv4.connman.net/online/status.html"
or
#define STATUS_URL_IPV6 "http://ipv6.connman.net/online/status.html"
Depending on your network speed, and distance to
connman.net, this can take a short
while.
In fact, if you are unlucky with the state of the internet it might even fail completely.
This would happen as well if your firewall is blocking outgoing port 80 connections to the
internet (I had that rule with a corporate firewall in one company).
A service is usable in the Ready state. Although if the online check fails, the
top/default service might get "downgraded" and default routes might get deleted.
Especially if you have more than one connection available (e.g. ConnMan might fall back to
Ethernet). In that case you may end up with just a local subnet route.
Lukasz
On 21/03/17 17:33, Fred Ollinger wrote:
From the documentation there's a "ready" state and an
"online" state.
While connecting to wifi using conmann, I noticed that "ready" is much faster
than "online".
My question is what's the difference b/w "ready" and "online"?
If a wifi connection is "ready" can I connect to the Internet?
I'm trying to determine whether I should use "ready" or "online"
to determine whether a connection is successful.
"ready" would be better because it's faster.
Thanks.
Frederick Ollinger
Software Engineer
Seescan, Inc
_______________________________________________
connman mailing list
connman(a)lists.01.org
https://lists.01.org/mailman/listinfo/connman