-
Notifications
You must be signed in to change notification settings - Fork 554
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
Allow custom WEBSOCKETS_NETWORK_TYPE #779
Comments
hello @Naheel-Azawy any finding on custom WEBSOCKETS_NETWORK_TYPE. I want to switch between GSM and Wi-Fi. |
Hi @SwapB5632, |
@Naheel-Azawy fell free to make a PR for the patch you have (with out the auto detection change) a |
Funny that this is exactly what I'm also looking for 😅 @Naheel-Azawy Thanks for the POC. I'll look to extend it to any TinyGSM supported modem. I'll also create an MR proposal for user-defined network types. |
@Naheel-Azawy @Links2004 @SwapB5632 Could you have a look at #921 (comment) and if that approach would also work for you? |
Hello,
I've been using this library and it's really impressive. Big thanks to the devs.
But now, I want to build my own
WEBSOCKETS_NETWORK_TYPE
.I understand that this can be achieved by modifying
WebSockets.h
. But that would be dirty.My suggestion, if not implemented somehow?, is to simply replace
with something like
Other checks can be optionally done for extra safety if you like.
I guess this would be nice to allow the user to define custom
WEBSOCKETS_NETWORK_CLASS
and others before includingWebSockets.h
.The text was updated successfully, but these errors were encountered: