A bit more work on MQTT support. It can actually connect to an MQTT broker now.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "canconfactory.h"
|
||||
#include "serialbusconnection.h"
|
||||
#include "gvretserial.h"
|
||||
#include "mqtt_bus.h"
|
||||
|
||||
using namespace CANCon;
|
||||
|
||||
@@ -14,6 +15,8 @@ CANConnection* CanConFactory::create(type pType, QString pPortName, QString pDri
|
||||
return new GVRetSerial(pPortName, false);
|
||||
case REMOTE:
|
||||
return new GVRetSerial(pPortName, true); //it's a special case of GVRET connected over TCP/IP so it uses the same class
|
||||
case MQTT:
|
||||
return new MQTT_BUS(pPortName);
|
||||
default: {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user