I am working on an connman integrated in an embedded system for home
We are using Connman 1.23 with an Ofono plugin to be able to switch to a
GSM modem in case of an issue with the ethernet interface.
If we are not able to ping our server even if the ethernet service is
ready, we would like to force the switch to the GSM.
For that, we use the connman Service MoveBefore API.
After MoveBefore :
- the GSM interface is used.
- the default route is up to date.
- connman does not notify a change of State on the ethernet or the GSM
- the services are not reordered after the switch.
Is this seems like a normal behaviour ?
Are there any other way to be notified via connman that the default
route has changed?
I saw that IPv4 "Gateway" field of the ethernet interface disappears
once MoveBefore GSM has changed -> can I use that information to be sure
ethernet does not have the default route anymore?
Thanks by advance for your help,