Added a mode for TCP/IP network connection to a GVRET compatible device (ESP32RET supports this)
This commit is contained in:
@@ -8,11 +8,13 @@ using namespace CANCon;
|
||||
CANConnection* CanConFactory::create(type pType, QString pPortName)
|
||||
{
|
||||
switch(pType) {
|
||||
case SOCKETCAN:
|
||||
return new SerialBusConnection(pPortName);
|
||||
case GVRET_SERIAL:
|
||||
return new GVRetSerial(pPortName);
|
||||
default: {}
|
||||
case SOCKETCAN:
|
||||
return new SerialBusConnection(pPortName);
|
||||
case GVRET_SERIAL:
|
||||
return new GVRetSerial(pPortName);
|
||||
case REMOTE:
|
||||
return new GVRetSerial(pPortName); //it's a special case of GVRET connected over TCP/IP so it uses the same class
|
||||
default: {}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user