[ { "id": "cee834492540f06e", "type": "tab", "label": "MSSQL 数据同步", "disabled": true, "info": "", "env": [] }, { "id": "4e0d058caa7afc4e", "type": "MSSQL", "z": "cee834492540f06e", "mssqlCN": "d082727f8d89ba41", "name": "五洋 数据库", "outField": "payload", "returnType": 0, "throwErrors": 1, "query": "", "modeOpt": "queryMode", "modeOptType": "query", "queryOpt": "query", "queryOptType": "msg", "paramsOpt": "queryParams", "paramsOptType": "none", "rows": "rows", "rowsType": "msg", "parseMustache": true, "params": [], "x": 550, "y": 320, "wires": [ [ "c53aa63e531b7e6d" ] ] }, { "id": "e20ef8063f6ae7d6", "type": "debug", "z": "cee834492540f06e", "name": "同步 · 标准化结果", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1330, "y": 420, "wires": [] }, { "id": "c48718bed4c3dfa7", "type": "inject", "z": "cee834492540f06e", "name": "五洋 · 每 10s 增量同步", "props": [], "repeat": "10", "crontab": "", "once": true, "onceDelay": 2, "topic": "", "payload": "", "payloadType": "date", "x": 100, "y": 320, "wires": [ [ "fn_wy_q" ] ] }, { "id": "c53aa63e531b7e6d", "type": "function", "z": "cee834492540f06e", "name": "五洋 · 标准化适配", "func": "// 五洋快照 → 统一采集项;仅在值变化时上送,避免重复灌库\n\nconst pad = n => String(n).padStart(2, '0');\nconst fmtUTC = d => d.getUTCFullYear() + '-' + pad(d.getUTCMonth()+1) + '-' + pad(d.getUTCDate()) + ' ' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds());\nconst wallNow = () => new Date(Date.now() - new Date().getTimezoneOffset() * 60000);\n\nconst rows = Array.isArray(msg.payload) ? msg.payload : [];\nif (!rows.length) { node.status({ fill: 'grey', shape: 'dot', text: '0 行(源库无新数据)' }); return null; }\nconst STATE = { '运行': 1, '待机': 2, '停机': 3, '报警': 4, '离线': 5 };\nconst PARAMS = ['机器转速','生产速度','累计产量','订单匹数','已生产匹数','当前匹已生产长度'];\nfor (let i = 1; i <= 8; i++) PARAMS.push('经轴送经量' + i);\nconst seen = flow.get('wy_seen') || {};\nconst items = [];\nlet wm = flow.get('wy_wm');\nfor (const r of rows) {\n const ts = r.MachineCollectionTime ? new Date(r.MachineCollectionTime) : null;\n if (!ts || isNaN(ts.getTime())) continue;\n const dev = ('WY-' + String(r.MachineNo || r.BaseMachineID || '').trim()).slice(0, 50);\n const data = {};\n for (const k of PARAMS) {\n const v = parseFloat(String(r[k] === null || r[k] === undefined ? '' : r[k]).replace(/[^0-9.\\-]/g, ''));\n if (isFinite(v)) data[k] = v;\n }\n const st = STATE[String(r['状态'] || '').trim()];\n if (st !== undefined) data['运行状态'] = st;\n const changed = {};\n let n = 0;\n for (const k in data) { const key = dev + '|' + k; if (seen[key] !== data[k]) { seen[key] = data[k]; changed[k] = data[k]; n++; } }\n if (n > 0) items.push({ src: 'WY', device: dev, ts: ts, u: 'vt', data: changed });\n const t = fmtUTC(ts);\n if (!wm || t > wm) wm = t;\n}\nconst keys = Object.keys(seen);\nif (keys.length > 5000) { const keep = {}; for (const k of keys.slice(-3000)) keep[k] = seen[k]; flow.set('wy_seen', keep); } else flow.set('wy_seen', seen);\nif (wm) flow.set('wy_wm', wm);\nnode.status({ fill: items.length ? 'green' : 'grey', shape: 'dot', text: rows.length + ' 行 → 变化 ' + items.length });\nif (!items.length) return null;\nmsg.collect = items;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 750, "y": 320, "wires": [ [ "08c95ee2bd3a9073" ] ] }, { "id": "fe88ac9fe19141be", "type": "MSSQL", "z": "cee834492540f06e", "mssqlCN": "9bb47eb9867c4772", "name": "目标库 · bulk 写缓存临时表", "outField": "payload", "returnType": 0, "throwErrors": 1, "query": "dbo.Sb_EquipMentCollectionTechParam_Temp", "modeOpt": "", "modeOptType": "bulk", "queryOpt": "payload", "queryOptType": "editor", "paramsOpt": "queryParams", "paramsOptType": "editor", "rows": "rows", "rowsType": "msg", "parseMustache": false, "params": [ { "output": false, "name": "HDate", "type": "datetime", "valueType": "num", "value": "0", "options": { "nullable": false, "primary": false, "identity": false, "readOnly": false } }, { "output": false, "name": "HSourceCode", "type": "varchar(50)", "valueType": "num", "value": "0", "options": { "nullable": false, "primary": false, "identity": false, "readOnly": false } }, { "output": false, "name": "HTechParamID", "type": "int", "valueType": "num", "value": "0", "options": { "nullable": false, "primary": false, "identity": false, "readOnly": false } }, { "output": false, "name": "HTechParamName", "type": "varchar(500)", "valueType": "num", "value": "0", "options": { "nullable": false, "primary": false, "identity": false, "readOnly": false } }, { "output": false, "name": "HCount", "type": "decimal(18,2)", "valueType": "num", "value": "0", "options": { "nullable": false, "primary": false, "identity": false, "readOnly": false } }, { "output": false, "name": "HCreateTime", "type": "datetime", "valueType": "num", "value": "0", "options": { "nullable": false, "primary": false, "identity": false, "readOnly": false } }, { "output": false, "name": "HResult", "type": "varchar(50)", "valueType": "num", "value": "0", "options": { "nullable": false, "primary": false, "identity": false, "readOnly": false } }, { "output": false, "name": "HProcNumber", "type": "varchar(50)", "valueType": "num", "value": "0", "options": { "nullable": false, "primary": false, "identity": false, "readOnly": false } }, { "output": false, "name": "HFlag", "type": "bit", "valueType": "num", "value": "0", "options": { "nullable": false, "primary": false, "identity": false, "readOnly": false } } ], "x": 580, "y": 640, "wires": [ [ "sync_out_dbg" ] ] }, { "id": "e9a1290762230e06", "type": "inject", "z": "cee834492540f06e", "name": "悠扬 · 每 10s 增量同步", "props": [], "repeat": "10", "crontab": "", "once": true, "onceDelay": 3, "topic": "", "payload": "", "payloadType": "date", "x": 100, "y": 520, "wires": [ [ "fn_yy_q" ] ] }, { "id": "c3e4894ab572dc51", "type": "MSSQL", "z": "cee834492540f06e", "mssqlCN": "04dfbd6bd2067336", "name": "悠扬 数据库", "outField": "payload", "returnType": 0, "throwErrors": 1, "query": "", "modeOpt": "queryMode", "modeOptType": "query", "queryOpt": "query", "queryOptType": "msg", "paramsOpt": "queryParams", "paramsOptType": "none", "rows": "rows", "rowsType": "msg", "parseMustache": true, "params": [], "x": 550, "y": 520, "wires": [ [ "ff402f329edcf253" ] ] }, { "id": "ff402f329edcf253", "type": "function", "z": "cee834492540f06e", "name": "悠扬 · 标准化适配", "func": "// 悠扬转速样本 → 统一采集项(每台每次采样一行)\n\nconst pad = n => String(n).padStart(2, '0');\nconst fmtUTC = d => d.getUTCFullYear() + '-' + pad(d.getUTCMonth()+1) + '-' + pad(d.getUTCDate()) + ' ' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds());\nconst wallNow = () => new Date(Date.now() - new Date().getTimezoneOffset() * 60000);\n\nconst rows = Array.isArray(msg.payload) ? msg.payload : [];\nif (!rows.length) { node.status({ fill: 'grey', shape: 'dot', text: '0 行(源库无新数据)' }); return null; }\nconst items = [];\nlet wm = flow.get('yy_wm');\nfor (const r of rows) {\n const ts = r.SpeedTime ? new Date(r.SpeedTime) : null;\n if (!ts || isNaN(ts.getTime())) continue;\n const v = Number(r.SpeedValue);\n items.push({ src: 'YY', device: ('YY-' + pad(r.MachineID)).slice(0, 50), ts: ts, u: 'vt', data: isFinite(v) ? { '机器转速': Math.round(v * 100) / 100 } : {} });\n const t = fmtUTC(ts);\n if (!wm || t > wm) wm = t;\n}\nnode.status({ fill: 'green', shape: 'dot', text: items.length + ' 条采样' });\nif (wm) flow.set('yy_wm', wm);\nmsg.collect = items;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 750, "y": 520, "wires": [ [ "08c95ee2bd3a9073" ] ] }, { "id": "08c95ee2bd3a9073", "type": "function", "z": "cee834492540f06e", "name": "统一标准化 → 缓冲", "func": "// 统一入口:msg.collect = [{src, device, ts, u, data:{参数:值}}] → 追加到缓冲\nconst items = Array.isArray(msg.collect) ? msg.collect : [];\nif (!items.length) return null;\nlet buf = flow.get('sync_rows') || [];\nlet added = 0;\nfor (const it of items) {\n const dev = String(it.device || '').slice(0, 50);\n if (!dev) continue;\n const src = String(it.src || 'UNK').slice(0, 10);\n const t = it.ts instanceof Date ? it.ts.getTime() : new Date(it.ts).getTime();\n if (!isFinite(t)) continue;\n const u = it.u === 'vt' ? 'vt' : 'loc';\n for (const k in (it.data || {})) {\n const v = Number(it.data[k]);\n if (!isFinite(v)) continue;\n buf.push({ s: src, d: dev, p: String(k).slice(0, 500), v: Math.round(v * 100) / 100, t: t, u: u });\n added++;\n }\n}\nif (buf.length > 60000) buf = buf.slice(buf.length - 60000);\nflow.set('sync_rows', buf);\nnode.status({ fill: 'blue', shape: 'dot', text: '+' + added + ' / 缓冲 ' + buf.length });\nreturn null;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1110, "y": 420, "wires": [ [ "e20ef8063f6ae7d6" ] ] }, { "id": "fn_wy_q", "type": "function", "z": "cee834492540f06e", "name": "五洋 · 生成增量查询", "func": "// 五洋(JYPM_wuyang) 织机 MES:按 MachineCollectionTime 增量拉取机器快照\n\nconst pad = n => String(n).padStart(2, '0');\nconst fmtUTC = d => d.getUTCFullYear() + '-' + pad(d.getUTCMonth()+1) + '-' + pad(d.getUTCDate()) + ' ' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds());\nconst wallNow = () => new Date(Date.now() - new Date().getTimezoneOffset() * 60000);\n\nlet wm = flow.get('wy_wm');\nconst ovr = (typeof msg.payload === 'string' && /^\\d{4}-\\d{2}-\\d{2}/.test(msg.payload.trim())) ? msg.payload.trim() : null;\nif (ovr) wm = ovr;\nconst start = wm ? new Date(wm) : new Date(wallNow().getTime() - 3600 * 1000);\nconst from = fmtUTC(start);\nconst cols = ['机器转速','生产速度','累计产量','订单匹数','已生产匹数','当前匹已生产长度'];\nfor (let i = 1; i <= 8; i++) cols.push('经轴送经量' + i);\nmsg.query = 'SELECT BaseMachineID, MachineNo, MachineName, 状态, MachineCollectionTime, ' + cols.join(', ') + '\\n' +\n 'FROM JYPM_wuyang.dbo.BaseMachine\\n' +\n \"WHERE MachineCollectionTime > '\" + from + \"'\\n\" +\n 'ORDER BY MachineCollectionTime';\nnode.status({ fill: 'grey', shape: 'ring', text: '五洋 水位 ' + from });\nmsg.wmFrom = from;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 340, "y": 320, "wires": [ [ "4e0d058caa7afc4e" ] ] }, { "id": "fn_yy_q", "type": "function", "z": "cee834492540f06e", "name": "悠扬 · 生成增量查询", "func": "// 悠扬(StandBussDB) 转速按月分表 MachineSpeedInfoYYYYMM:从水位所在月扫到当前月(最多 6 个月)\nconst pad = n => String(n).padStart(2, '0');\nconst fmtUTC = d => d.getUTCFullYear() + '-' + pad(d.getUTCMonth()+1) + '-' + pad(d.getUTCDate()) + ' ' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds());\nconst wallNow = () => new Date(Date.now() - new Date().getTimezoneOffset() * 60000);\nconst ymOf = d => String(d.getUTCFullYear()) + pad(d.getUTCMonth() + 1);\nconst wn = wallNow();\nlet wm = flow.get('yy_wm');\nconst ovr = (typeof msg.payload === 'string' && /^\\d{4}-\\d{2}-\\d{2}/.test(msg.payload.trim())) ? msg.payload.trim() : null;\nif (ovr) wm = ovr;\nif (!wm) wm = fmtUTC(new Date(wn.getTime() - 3600 * 1000));\n// 水位所在月 → 当前月,逐月收集分表名(跨月/断档都能补齐,最多回溯 6 个月)\nconst wmD = new Date(wm.replace(' ', 'T') + 'Z');\nlet y = wmD.getUTCFullYear(), m = wmD.getUTCMonth();\nconst months = [];\nfor (let i = 0; i < 6; i++) {\n months.push(String(y) + pad(m + 1));\n if (y === wn.getUTCFullYear() && m === wn.getUTCMonth()) break;\n m++; if (m > 11) { m = 0; y++; }\n}\nconst sel = t => \"SELECT MachineID, SpeedTime, SpeedValue FROM StandBussDB.dbo.MachineSpeedInfo\" + t + ' WHERE SpeedTime > @wm';\nconst parts = [\"DECLARE @wm datetime = '\" + wm + \"';\", \"DECLARE @sql nvarchar(max) = N'';\"];\nfor (const t of months) {\n parts.push(\"IF OBJECT_ID('StandBussDB.dbo.MachineSpeedInfo\" + t + \"') IS NOT NULL SET @sql = CASE WHEN @sql = N'' THEN N'\" + sel(t) + \"' ELSE @sql + N' UNION ALL \" + sel(t) + \"' END;\");\n}\nparts.push(\"IF @sql = N'' SET @sql = N'SELECT TOP 0 MachineID = CAST(0 AS int), SpeedTime = CAST(GETDATE() AS datetime), SpeedValue = CAST(0 AS decimal(18,2))';\");\nparts.push(\"EXEC sp_executesql @sql, N'@wm datetime', @wm;\");\nmsg.query = parts.join('\\n');\nnode.status({ fill: 'grey', shape: 'ring', text: '悠扬 水位 ' + wm });\nmsg.wmFrom = wm;\nmsg.months = months.join(',');\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 340, "y": 520, "wires": [ [ "c3e4894ab572dc51" ] ] }, { "id": "fn_sync_flush", "type": "function", "z": "cee834492540f06e", "name": "取缓冲 → bulk 行", "func": "// 每 5s:缓冲 → 去重(同设备同参数取最新)→ bulk 行\nconst buf = flow.get('sync_rows') || [];\nif (!buf.length) return null;\nflow.set('sync_rows', []);\nconst local = d => new Date(d.getTime() - d.getTimezoneOffset() * 60000);\nconst best = new Map();\nfor (const r of buf) {\n const k = r.d + '|' + r.p + '|' + r.t; // 同一时刻同一参数才合并\n const c = best.get(k);\n if (!c || r.t >= c.t) best.set(k, r);\n}\nconst now = local(new Date());\nconst rows = [];\nfor (const r of best.values()) {\n const t = r.u === 'vt' ? new Date(r.t) : local(new Date(r.t));\n rows.push([t, r.d, 0, r.p, r.v, now, String(r.v).slice(0, 50), r.s, 0]);\n}\nmsg.rows = rows;\nmsg.query = 'dbo.Sb_EquipMentCollectionTechParam_Temp';\nmsg.queryMode = 'bulk';\nmsg.retryBuf = Array.from(best.values());\nmsg.payload = { table: msg.query, rows: rows.length };\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 330, "y": 640, "wires": [ [ "fe88ac9fe19141be" ] ] }, { "id": "fn_sync_retry", "type": "function", "z": "cee834492540f06e", "name": "失败回填缓冲", "func": "// 写库失败:把本批行退回缓冲,下一轮重试\nconst back = Array.isArray(msg.retryBuf) ? msg.retryBuf : [];\nif (back.length) {\n let buf = flow.get('sync_rows') || [];\n buf = back.concat(buf);\n if (buf.length > 100000) buf = buf.slice(buf.length - 100000);\n flow.set('sync_rows', buf);\n}\nmsg.payload = { error: (msg.error && msg.error.message) || 'bulk failed', requeued: back.length };\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 780, "y": 720, "wires": [ [ "sync_err_dbg" ] ] }, { "id": "fn_mqtt_ad", "type": "function", "z": "cee834492540f06e", "name": "MQTT · 标准化适配", "func": "// 自有设备:topic = collect/<设备编码>,payload = {ts?, data:{参数:值}} 或直接 {参数:值}\nconst t = String(msg.topic || '');\nconst dev = (t.split('/').filter(Boolean).pop() || 'LOCAL-01').slice(0, 50);\nconst p = msg.payload;\nif (!p || typeof p !== 'object') return null;\nconst hasData = p.data && typeof p.data === 'object';\nconst data = hasData ? p.data : p;\nconst ts = p.ts ? new Date(p.ts) : new Date();\nmsg.collect = [{ src: 'LOCAL', device: dev, ts: ts, u: 'loc', data: data }];\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 370, "y": 840, "wires": [ [ "08c95ee2bd3a9073" ] ] }, { "id": "sync_flush", "type": "inject", "z": "cee834492540f06e", "name": "每 5s 批量入库", "props": [], "repeat": "5", "crontab": "", "once": true, "onceDelay": "8", "topic": "", "payload": "", "payloadType": "date", "x": 120, "y": 640, "wires": [ [ "fn_sync_flush" ] ] }, { "id": "sync_out_dbg", "type": "debug", "z": "cee834492540f06e", "name": "入库结果", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 800, "y": 640, "wires": [] }, { "id": "sync_catch", "type": "catch", "z": "cee834492540f06e", "name": "同步异常", "scope": [ "fe88ac9fe19141be", "4e0d058caa7afc4e", "c3e4894ab572dc51" ], "uncaught": false, "x": 560, "y": 720, "wires": [ [ "fn_sync_retry" ] ] }, { "id": "sync_err_dbg", "type": "debug", "z": "cee834492540f06e", "name": "异常详情", "active": true, "tosidebar": true, "console": true, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1000, "y": 720, "wires": [] }, { "id": "mqtt_own", "type": "mqtt in", "z": "cee834492540f06e", "d": true, "name": "自有设备 · MQTT(待启用)", "topic": "collect/#", "qos": "2", "datatype": "json", "broker": "mqtt_broker_local", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 120, "y": 840, "wires": [ [ "fn_mqtt_ad" ] ] }, { "id": "fn_reset_wm", "type": "function", "z": "cee834492540f06e", "name": "重置水位 → 当前时刻", "func": "// 维护:payload 为空/无 → 水位=当前;数字或纯数字串 → 回补最近 N 天;日期串 → 指定时刻\nconst pad = n => String(n).padStart(2, '0');\nconst wc = d => d.getUTCFullYear() + '-' + pad(d.getUTCMonth()+1) + '-' + pad(d.getUTCDate()) + ' ' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds());\nconst wall = new Date(Date.now() - new Date().getTimezoneOffset() * 60000);\nconst p = msg.payload;\nlet s = wc(wall);\nlet how = '当前时刻';\nif (typeof p === 'number' && isFinite(p)) { s = wc(new Date(wall.getTime() - p * 86400000)); how = '回补 ' + p + ' 天'; }\nelse if (typeof p === 'string' && /^\\d+$/.test(p.trim())) { const d = Number(p.trim()); s = wc(new Date(wall.getTime() - d * 86400000)); how = '回补 ' + d + ' 天'; }\nelse if (typeof p === 'string' && /^\\d{4}-\\d{2}-\\d{2}/.test(p.trim())) { s = p.trim(); how = '指定 ' + s; }\nflow.set('wy_wm', s); flow.set('yy_wm', s); flow.set('wy_seen', {});\nmsg.payload = '水位 → ' + s + '(' + how + ')';\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 340, "y": 960, "wires": [ [ "reset_dbg" ] ] }, { "id": "reset_btn", "type": "inject", "z": "cee834492540f06e", "name": "重置水位(维护)", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 120, "y": 960, "wires": [ [ "fn_reset_wm" ] ] }, { "id": "reset_dbg", "type": "debug", "z": "cee834492540f06e", "name": "水位日志", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 560, "y": 960, "wires": [] }, { "id": "bf10", "type": "inject", "z": "cee834492540f06e", "name": "回补最近 10 天", "props": [ { "p": "payload", "v": "10", "vt": "num" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 120, "y": 1040, "wires": [ [ "fn_reset_wm" ] ] }, { "id": "bf30", "type": "inject", "z": "cee834492540f06e", "name": "回补最近 30 天", "props": [ { "p": "payload", "v": "30", "vt": "num" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 120, "y": 1120, "wires": [ [ "fn_reset_wm" ] ] }, { "id": "d082727f8d89ba41", "type": "MSSQL-CN", "tdsVersion": "7_4", "name": "WuYangSync", "server": "127.0.0.1", "port": "49855", "encyption": false, "trustServerCertificate": true, "database": "JYPM_wuyang", "useUTC": true, "connectTimeout": "15000", "requestTimeout": "15000", "cancelTimeout": "5000", "pool": "5", "parseJSON": false, "enableArithAbort": true, "readOnlyIntent": false }, { "id": "9bb47eb9867c4772", "type": "MSSQL-CN", "tdsVersion": "7_4", "name": "ZyMesSync", "server": "127.0.0.1", "port": "49855", "encyption": false, "trustServerCertificate": true, "database": "HX_LMESsys", "useUTC": true, "connectTimeout": "15000", "requestTimeout": "15000", "cancelTimeout": "5000", "pool": "5", "parseJSON": false, "enableArithAbort": true, "readOnlyIntent": false }, { "id": "04dfbd6bd2067336", "type": "MSSQL-CN", "tdsVersion": "7_4", "name": "youyangSync", "server": "127.0.0.1", "port": "49855", "encyption": true, "trustServerCertificate": true, "database": "StandBussDB", "useUTC": true, "connectTimeout": "15000", "requestTimeout": "15000", "cancelTimeout": "5000", "pool": "5", "parseJSON": false, "enableArithAbort": true, "readOnlyIntent": false }, { "id": "mqtt_broker_local", "type": "mqtt-broker", "name": "自有设备 MQTT Broker", "broker": "127.0.0.1", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "verifyservercert": true, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "autoUnsubscribe": true, "birthTopic": "", "birthQos": "0", "birthRetain": "false", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closeRetain": "false", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willRetain": "false", "willPayload": "", "willMsg": {} }, { "id": "7420a72010239567", "type": "global-config", "env": [], "modules": { "node-red-contrib-mssql-plus": "0.13.1" } } ]