Skip to content

Commit 0b08a1c

Browse files
committed
Update to vscp-framework trunk (a75bc4bdb2f1e8bc68ce75fa096d92c0a6a69fa3)
1 parent 415ea10 commit 0b08a1c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+102
-65
lines changed

src/framework/vscp_action.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License (MIT)
22
*
3-
* Copyright (c) 2014 - 2018, Andreas Merkle
3+
* Copyright (c) 2014 - 2019, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
66
*

src/framework/vscp_action.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License (MIT)
22
*
3-
* Copyright (c) 2014 - 2018, Andreas Merkle
3+
* Copyright (c) 2014 - 2019, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
66
*

src/framework/vscp_app_reg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License (MIT)
22
*
3-
* Copyright (c) 2014 - 2018, Andreas Merkle
3+
* Copyright (c) 2014 - 2019, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
66
*

src/framework/vscp_app_reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License (MIT)
22
*
3-
* Copyright (c) 2014 - 2018, Andreas Merkle
3+
* Copyright (c) 2014 - 2019, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
66
*

src/framework/vscp_class_l1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License (MIT)
22
*
3-
* Copyright (c) 2014 - 2018, Andreas Merkle
3+
* Copyright (c) 2014 - 2019, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
66
*

src/framework/vscp_class_l1_l2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License (MIT)
22
*
3-
* Copyright (c) 2014 - 2018, Andreas Merkle
3+
* Copyright (c) 2014 - 2019, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
66
*

src/framework/vscp_config.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License (MIT)
22
*
3-
* Copyright (c) 2014 - 2018, Andreas Merkle
3+
* Copyright (c) 2014 - 2019, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
66
*
@@ -224,6 +224,17 @@ extern "C"
224224

225225
#endif /* Undefined VSCP_CONFIG_PROTOCOL_EVENT_NOTIFICATION */
226226

227+
#ifndef VSCP_CONFIG_ENABLE_CUSTOM_HEARTBEAT
228+
229+
/**
230+
* By default a heartbeat is sent, with 0 as user data and without extended
231+
* data. If you need a custom heartbeat and able to define user and extended
232+
* data by yourself, enable this.
233+
*/
234+
#define VSCP_CONFIG_ENABLE_CUSTOM_HEARTBEAT VSCP_CONFIG_BASE_DISABLED
235+
236+
#endif /* Undefined VSCP_CONFIG_ENABLE_CUSTOM_HEARTBEAT */
237+
227238
/*******************************************************************************
228239
CONSTANTS
229240
*******************************************************************************/

src/framework/vscp_config_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License (MIT)
22
*
3-
* Copyright (c) 2014 - 2018, Andreas Merkle
3+
* Copyright (c) 2014 - 2019, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
66
*

src/framework/vscp_config_overwrite.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License (MIT)
22
*
3-
* Copyright (c) 2014 - 2018, Andreas Merkle
3+
* Copyright (c) 2014 - 2019, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
66
*
@@ -98,6 +98,8 @@ extern "C"
9898
9999
#define VSCP_CONFIG_PROTOCOL_EVENT_NOTIFICATION VSCP_CONFIG_BASE_DISABLED
100100
101+
#define VSCP_CONFIG_ENABLE_CUSTOM_HEARTBEAT VSCP_CONFIG_BASE_DISABLED
102+
101103
*/
102104

103105
/*******************************************************************************

src/framework/vscp_core.c

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* The MIT License (MIT)
22
*
3-
* Copyright (c) 2014 - 2018, Andreas Merkle
3+
* Copyright (c) 2014 - 2019, Andreas Merkle
44
* http://www.blue-andi.de
55
* vscp@blue-andi.de
66
*
@@ -47,6 +47,7 @@
4747
#include "vscp_class_l1.h"
4848
#include "vscp_type_protocol.h"
4949
#include "vscp_type_information.h"
50+
#include "vscp_information.h"
5051
#include "vscp_ps.h"
5152
#include "vscp_timer.h"
5253
#include "vscp_app_reg.h"
@@ -1149,19 +1150,11 @@ static inline void vscp_core_stateActive(void)
11491150
if ((FALSE != vscp_core_isHeartbeatEnabled) &&
11501151
(FALSE == vscp_timer_getStatus(vscp_core_heartbeatTimerId)))
11511152
{
1152-
vscp_TxMessage txMessage;
1153-
1154-
txMessage.vscpClass = VSCP_CLASS_L1_INFORMATION;
1155-
txMessage.vscpType = VSCP_TYPE_INFORMATION_NODE_HEARTBEAT;
1156-
txMessage.priority = VSCP_PRIORITY_7_LOW;
1157-
txMessage.oAddr = vscp_core_nickname;
1158-
txMessage.hardCoded = VSCP_CORE_HARD_CODED;
1159-
txMessage.dataNum = 3;
1160-
txMessage.data[0] = 0; /* User specific - not used */
1161-
txMessage.data[1] = vscp_dev_data_getNodeZone();
1162-
txMessage.data[2] = vscp_dev_data_getNodeSubZone();
1163-
1164-
(void)vscp_transport_writeMessage(&txMessage);
1153+
#if VSCP_CONFIG_BASE_IS_ENABLED( VSCP_CONFIG_ENABLE_CUSTOM_HEARTBEAT )
1154+
(void)vscp_portable_sendNodeHeartbeatEvent();
1155+
#else
1156+
(void)vscp_information_sendNodeHeartbeatEvent(0, vscp_dev_data_getNodeZone(), vscp_dev_data_getNodeSubZone());
1157+
#endif
11651158

11661159
/* Restart timer */
11671160
vscp_timer_start(vscp_core_heartbeatTimerId, VSCP_CONFIG_HEARTBEAT_NODE_PERIOD);

0 commit comments

Comments
 (0)