node-red-contrib-symi-mesh 1.6.3 → 1.6.4
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.
- package/nodes/symi-485-config.js +0 -3
- package/package.json +1 -1
package/nodes/symi-485-config.js
CHANGED
|
@@ -114,9 +114,6 @@ module.exports = function(RED) {
|
|
|
114
114
|
|
|
115
115
|
node.client.on('connect', () => {
|
|
116
116
|
node.connected = true;
|
|
117
|
-
// 启用TCP keep-alive,防止连接超时
|
|
118
|
-
node.client.setKeepAlive(true, 30000); // 30秒心跳
|
|
119
|
-
node.client.setNoDelay(true); // 禁用Nagle算法,立即发送
|
|
120
117
|
node.warn(`[RS485] TCP已连接: ${node.host}:${node.port}`);
|
|
121
118
|
node.emit('connected');
|
|
122
119
|
});
|