Open
Description
@Links2004 I am working on a project using ESP32 and the WebSockets library, where I need to switch between Wi-Fi and GSM networks dynamically. I would like to globally define WEBSOCKETS_NETWORK_TYPE to control whether the WebSocket connection uses Wi-Fi (NETWORK_WIFI) or GSM (NETWORK_GSM) without modifying the core WebSocket library files.
Currently, I am using TinyGSM for GSM and WiFi.h for Wi-Fi. I would like to know the best approach to handle this globally so that I can toggle between Wi-Fi and GSM by simply setting WEBSOCKETS_NETWORK_TYPE in the project.
Metadata
Metadata
Assignees
Labels
No labels