Skip to content

Commit

Permalink
Add default config for Wiren Board 8.5 (#847) (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
KraPete authored Dec 25, 2024
1 parent 2b47c9c commit 057b64c
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 1 deletion.
59 changes: 59 additions & 0 deletions configs/config.json.wb85
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"debug": false,
"ports": [
{
"path": "/dev/ttyRS485-1",
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"enabled": true,
"devices": []
},
{
"path": "/dev/ttyRS485-2",
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"enabled": true,
"devices": []
},
{
"path": "/dev/ttyMOD1",
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"enabled": false,
"devices": []
},
{
"path": "/dev/ttyMOD2",
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"enabled": false,
"devices": []
},
{
"path": "/dev/ttyMOD3",
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"enabled": false,
"devices": []
},
{
"path": "/dev/ttyMOD4",
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"enabled": false,
"devices": []
}
]
}
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wb-mqtt-serial (2.146.0-wb102) stable; urgency=medium

* Add default config with ttyMOD4 for Wiren Board 8.5

-- Petr Krasnoshchekov <petr.krasnoshchekov@wirenboard.com> Tue, 24 Dec 2024 19:54:50 +0500

wb-mqtt-serial (2.146.0-wb101) stable; urgency=medium

* Add template for WBE2-I-OPENTHERM-FW-1-7-3
Expand Down
4 changes: 3 additions & 1 deletion debian/wb-mqtt-serial.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ wb_source "of"

CONFFILE=/etc/wb-mqtt-serial.conf

if of_machine_match "wirenboard,wirenboard-8xx"; then
if of_machine_match "wirenboard,wirenboard-85x"; then
BOARD_CONF="/usr/share/wb-mqtt-serial/wb-mqtt-serial.conf.wb85"
elif of_machine_match "wirenboard,wirenboard-8xx"; then
BOARD_CONF="/usr/share/wb-mqtt-serial/wb-mqtt-serial.conf.wb8"
elif of_machine_match "wirenboard,wirenboard-720"; then
BOARD_CONF="/usr/share/wb-mqtt-serial/wb-mqtt-serial.conf.wb7"
Expand Down

0 comments on commit 057b64c

Please sign in to comment.