incyclist-devices 1.3.24 → 1.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -52,9 +52,9 @@ class DaumPremiumProtocol extends DeviceProtocol_1.default {
|
|
|
52
52
|
add(settings) {
|
|
53
53
|
if (settings.interface && settings.interface === DeviceProtocol_1.INTERFACE.TCPIP) {
|
|
54
54
|
bike_1.Daum8iTcp.setNetImpl(DeviceProtocol_1.default.getNetImpl());
|
|
55
|
-
const { host
|
|
56
|
-
const portName = `${host}
|
|
57
|
-
return this.addDevice(bike_1.Daum8iTcp, { host, port, interface: DeviceProtocol_1.INTERFACE.TCPIP }, portName);
|
|
55
|
+
const { host } = settings;
|
|
56
|
+
const portName = `${host}:51955`;
|
|
57
|
+
return this.addDevice(bike_1.Daum8iTcp, { host, port: 51955, interface: DeviceProtocol_1.INTERFACE.TCPIP }, portName);
|
|
58
58
|
}
|
|
59
59
|
if (settings.interface && settings.interface === DeviceProtocol_1.INTERFACE.SERIAL) {
|
|
60
60
|
bike_1.Daum8iSerial.setSerialPort(DeviceProtocol_1.default.getSerialPort());
|
package/lib/daum/premium/bike.js
CHANGED
|
@@ -39,7 +39,7 @@ class Daum8i {
|
|
|
39
39
|
if (this.props.interface === 'tcpip') {
|
|
40
40
|
const port = this.props.port || DAUM_PREMIUM_DEFAULT_PORT;
|
|
41
41
|
const host = this.props.host || DAUM_PREMIUM_DEFAULT_HOST;
|
|
42
|
-
this.portName = `${host}
|
|
42
|
+
this.portName = `${host}:51955`;
|
|
43
43
|
this.tcpip = true;
|
|
44
44
|
this.serial = false;
|
|
45
45
|
this.tcpipConnection = { host, port };
|