docs: function createDeviceConnectionObj(dt, ct, id) {
              var obj = {
                  'dt': dt,
                  'ct': ct,
                  'id': id,
                  'connectionType': ct,
                  'connectionTypeStr': driver_const.DRIVER_CONNECTION_TYPE_NAMES[ct],
                  'connectionTypeName': driver_const.CONNECTION_TYPE_NAMES[ct],
                  'name': driver_const.CONNECTION_TYPE_NAMES[ct],
                  'isVerified': false,
                  'verified': false,
                  'isScanned': false,
                  'insertionMethod': 'unknown',
                  'foundByAttribute': false,
                  'isActive': false,
                  'isMockDevice': false,
              };
              var usbCT = driver_const.connectionTypes.usb;
              var ethCT = driver_const.connectionTypes.ethernet;
              var wifiCT = driver_const.connectionTypes.wifi;
  
              if((ct == ethCT)||(ct == wifiCT)) {
                  obj.ip = id;
                  obj.ipAddress = id;
                  // Define the port as the modbus 502 port.
                  obj.port = driver_const.LJM_MODBUS_PORT;
              } else if(ct == usbCT) {
                  obj.ip = '0.0.0.0';
                  obj.ipAddress = '0.0.0.0';
                  obj.port = 0;
              }
              return obj;
          }