Sign in
简柏林
/
thingskit-scada
·
Commits
GitLab
Go to dashboard
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
d6ed5412a5fc228bf694fd30e26a8758557bc030
Authored by
ww
2023-12-29 15:49:00 +0800
1 parent
7534bb10
fix: 修复TCP命令下发浮点类型生成modbus命令时method参数传递错误
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
src/core/Library/components/PublicForm/components/DataEvents/CommandDeliveryModal/useGetModbusCommand.ts
src/core/Library/components/PublicForm/components/DataEvents/CommandDeliveryModal/useGetModbusCommand.ts
View file @
d6ed541
...
...
@@ -62,6 +62,7 @@ export function useGetModbusCommand() {
62
62
= values === 0 ? [0, 0] : getArray(SingleToHex(values))
63
63
params.registerValues = newValue
64
64
params.registerNumber = 2
65
+
params.method = '10'
65
66
}
66
67
67
68
return await genModbusCommand(params)
...
...