A bit more work on MQTT support. It can actually connect to an MQTT broker now.

This commit is contained in:
Collin Kidder
2020-08-05 21:53:21 -04:00
parent ee287eac4b
commit 2da2855bfa
6 changed files with 288 additions and 4 deletions
+3
View File
@@ -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: {}
}