Skip to content

Commit

Permalink
Updated default config file with better will's for drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed Jan 19, 2024
1 parent 8450c24 commit 5991482
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
24 changes: 12 additions & 12 deletions resources/linux/vscpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level I logger driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -307,7 +307,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level I can4vscp driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -427,7 +427,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level I socketcan driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -547,7 +547,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level I can232 driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -667,7 +667,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level II Logger driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -785,7 +785,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level II lmsensors driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -903,7 +903,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level II socketcan driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -1021,7 +1021,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level II mqtt driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -1139,7 +1139,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level II tcpiplink driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -1257,7 +1257,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level II rawethernet driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -1375,7 +1375,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level II sim driver down"
},
"subscribe": [
{
Expand Down Expand Up @@ -1493,7 +1493,7 @@
"topic": "vscp-daemon/{{srvguid}}/drivers/{{ifguid}}/will",
"qos": 1,
"retain": true,
"payload": "vscpl2drv-energy-p1 driver down"
"payload": "Level II 1-wire driver down"
},
"subscribe": [
{
Expand Down
9 changes: 9 additions & 0 deletions src/vscp/common/mdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ typedef enum mdf_record_type {
mdf_type_decision_matrix,
mdf_type_action,
mdf_type_action_item,
mdf_type_action_sub_item,
mdf_type_action_param,
mdf_type_event,
mdf_type_event_item,
Expand Down Expand Up @@ -166,6 +167,7 @@ typedef enum mdf_record_type {
mdf_type_manual_sub_item, // Manual content"
mdf_type_redirection,
mdf_type_alarm,
mdf_type_alarm_item,
mdf_type_generic_string, // Used for direct item editing
mdf_type_generic_number, // Used for direct item editing
mdf_type_generic_url, // Used for direct item editing
Expand Down Expand Up @@ -3867,6 +3869,13 @@ class CMDF : public CMDF_Object {
*/
std::deque<CMDF_Bit *> *getAlarmList() { return &m_list_alarm; };

/*!
Get the alarm list
(Alternative consistent with other bit list getters)
@return Pointer to the alarm list.
*/
std::deque<CMDF_Bit *> *getAlarmListBits() { return &m_list_alarm; };

// ----------------------------------------------------------------------------

/*!
Expand Down

0 comments on commit 5991482

Please sign in to comment.