Skip to content

Commit 8bf53ef

Browse files
committed
Clean up sensor network
1 parent 7be3067 commit 8bf53ef

File tree

5 files changed

+163
-108
lines changed

5 files changed

+163
-108
lines changed

libs/remote_sensor/syscfg.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ syscfg.defs:
2424
value: AMBIENT_TEMPERATURE_RAW
2525

2626
REMOTE_SENSOR_TYPE_1__INT:
27-
description: 'Value Type is int'
27+
description: 'Is Sensor Value Type int?'
2828
value: 1
2929

3030
REMOTE_SENSOR_TYPE_1__DOUBLE:
31-
description: 'Value Type is double'
31+
description: 'Is Sensor Value Type double?'
3232
value: 0
3333

3434
###########################################################################
@@ -51,11 +51,11 @@ syscfg.defs:
5151
value: AMBIENT_TEMPERATURE
5252

5353
REMOTE_SENSOR_TYPE_2__INT:
54-
description: 'Value Type is int'
54+
description: 'Is Sensor Value Type int?'
5555
value: 0
5656

5757
REMOTE_SENSOR_TYPE_2__DOUBLE:
58-
description: 'Value Type is double'
58+
description: 'Is Sensor Value Type double?'
5959
value: 1
6060

6161
###########################################################################
@@ -78,11 +78,11 @@ syscfg.defs:
7878
value: PRESSURE
7979

8080
REMOTE_SENSOR_TYPE_3__INT:
81-
description: 'Value Type is int'
81+
description: 'Is Sensor Value Type int?'
8282
value: 0
8383

8484
REMOTE_SENSOR_TYPE_3__DOUBLE:
85-
description: 'Value Type is double'
85+
description: 'Is Sensor Value Type double?'
8686
value: 1
8787

8888
###########################################################################
@@ -105,11 +105,11 @@ syscfg.defs:
105105
value: RELATIVE_HUMIDITY
106106

107107
REMOTE_SENSOR_TYPE_4__INT:
108-
description: 'Value Type is int'
108+
description: 'Is Sensor Value Type int?'
109109
value: 0
110110

111111
REMOTE_SENSOR_TYPE_4__DOUBLE:
112-
description: 'Value Type is double'
112+
description: 'Is Sensor Value Type double?'
113113
value: 1
114114

115115
# When we add Remote Sensor Type 5, remember to replicate the macros in

libs/sensor_network/include/sensor_network/sensor_network.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ bool should_send_to_collector(struct sensor_value *val, const char *device_name)
135135
/////////////////////////////////////////////////////////
136136
// Sensor Network Addresses
137137

138-
// Get the randomly-generated device ID. Changes upon restart.
138+
// Return the Hardware ID, which is unique across all microcontrollers.
139+
const uint8_t *get_hardware_id(void);
140+
141+
// Get the randomly-generated Device ID that will be sent in every CoAP Server message. Changes upon restart.
139142
const char *get_device_id(void);
140143

141144
// Return the Collector Node address for this Sensor Network.

0 commit comments

Comments
 (0)