Detect hardware before setup, or, recreating clients in run time

This compiles without errors or warnings. To use, change "mqttClient.function()" to "p_mqttClient->function()".

#include <ArduinoMqttClient.h>

#include <WiFiNINA.h>
#include <Ethernet.h>

const byte NetworkSwitchPin = 5;

WiFiClient    WiFi_Client;
WiFiSSLClient WiFi_httpsClient;
WiFiClient    WiFi_transport;

EthernetClient Eth_Client;
EthernetClient Eth_httpsClient;
EthernetClient Eth_transport;

MqttClient *p_mqttClient;

void setup()
{
  if (digitalRead(NetworkSwitchPin) == LOW)
  {
    p_mqttClient = new MqttClient(Eth_Client);
  }
  else
  {
    p_mqttClient = new MqttClient(WiFi_Client);
  }

}

void loop() {}