Skip to content

Need to Implement Global Switching Between Wi-Fi and GSM for WebSocket Connections. #910

Open
@SwapB5632

Description

@SwapB5632

@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.

for reference kindly check the screenshot.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions