Skip to content

Commit fec7e1f

Browse files
Add Neptune Modbus support to pumps and message list
- Updated pumps.js to include 'neptunemodbus' in the widget options. - Enhanced editMessage.widget.js to add 'Neptune Modbus' to the message list options. - Added 'neptunemodbus' protocol details in constants.json with relevant actions and key format.
1 parent 3d816b4 commit fec7e1f

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

scripts/messages/messageList/editMessage.widget.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
{ val: 'pump', desc: 'Pump' },
9797
{ val: 'intellivalve', desc: 'Intellivalve' },
9898
{ val: 'intellichem', desc: 'Intellichem' },
99-
{ val: 'regalmodbus', desc: 'Regal Modbus' }],
99+
{ val: 'regalmodbus', desc: 'Regal Modbus' },
100+
{ val: 'neptunemodbus', desc: 'Neptune Modbus' }],
100101
inputAttrs: { style: { width: '7rem' } }, labelAttrs: { style: { width: '4rem' } }
101102
});
102103
proto.on('selchanged', function (evt) {

scripts/pumps.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function ($) {
1+
(function ($) {
22
$.widget("pic.pumps", {
33
options: { },
44
_create: function () {
@@ -131,6 +131,7 @@
131131
case 'vs':
132132
case 'vs+svrs':
133133
case 'regalmodbus':
134+
case 'neptunemodbus':
134135
el.find('div.picProgram').hide();
135136
el.find('div.picFlow').hide();
136137
el.find('div.picSpeed').show();

server/messages/docs/constants.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"protocols": [
33
{
44
"name": "broadcast",
@@ -834,6 +834,17 @@
834834
"controller": false,
835835
"length": false,
836836
"keyFormat": "<address>_<function>_<ack>_<data>_<crclo>_<crchi>"
837+
},
838+
{
839+
"name": "neptunemodbus",
840+
"desc": "Neptune Modbus",
841+
"actions": {
842+
"all": []
843+
},
844+
"source": false,
845+
"controller": false,
846+
"length": false,
847+
"keyFormat": "<address>_<function>_<data>_<crclo>_<crchi>"
837848
}
838849
],
839850
"controllers": [

0 commit comments

Comments
 (0)