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

Extend Network Connection Profiles #408

Closed
SNSubramanya opened this issue Jan 19, 2024 · 1 comment · Fixed by #769
Closed

Extend Network Connection Profiles #408

SNSubramanya opened this issue Jan 19, 2024 · 1 comment · Fixed by #769
Assignees

Comments

@SNSubramanya
Copy link
Contributor

SNSubramanya commented Jan 19, 2024

To extend network connection profile for a more optional fine-grain control the following optional API interfaces need to be added:

  1. Set up an interface. A callback can be implemented to set up the interface. For example, if the interface is a modem, it must first be enabled before it is possible to connect to that interface.
  2. Force close the web socket. Can be used to force the web socket to close when the low-level network interface goes down. This is much faster than waiting for a web socket timeout.
  3. Switch to a higher priority interface. Normally, if libocpp is connected with a network connection profile, it will not disconnect. However, there may be a situation where libocpp is connected to a profile with priority 2 or lower, and you find out at system level that an interface (with a higher priority) has changed and is now up. In this case, you may want to tell libocpp that the higher priority priority interface is up and that it can try to connect to it.
  4. Connected and disconnected web socket callback. It will provide the network slot in these callbacks so that you can keep the network connection in use (e.g. do not disable the modem) or deactivate it if necessary.
@SNSubramanya SNSubramanya self-assigned this Jan 19, 2024
@SNSubramanya SNSubramanya linked a pull request Jan 22, 2024 that will close this issue
@WilcodenBesten WilcodenBesten changed the title Network Connection Profiles Extend Network Connection Profiles Aug 15, 2024
@WilcodenBesten
Copy link
Contributor

Picking this up and updated the description. I'll keep #410 open for now, but i'll make a new branch on top of #748 as it's very much outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants