In our hardware solution using the S7G2, our main application needs to connect to a server to regular upload data. It can do so either via GSM, WiFi or wired ethernet.
For the GSM modem, its a module, so we use AT commands.
For the WiFi, we have our own plug-in module with an MCU talking to the WiFi module. This plug-in module can be controlled from the main board via our own UART interface.
We need a connection handler of sorts to manage the 3 possible connections. The application will only talk on one connection at a given time, but has rules and priorities to switch between connections. Can we use NetX in some way to handle these 3 connections?
To switch SIM you would need to use the M95 AT command :-
and then use one of the other M95 SIM related AT commands to check the SIM as per your requirements.