File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,10 @@ uint8_t getNodeId() {
203
203
return _nc.nodeId ;
204
204
}
205
205
206
+ uint8_t getParentNodeId () {
207
+ return _nc.parentNodeId ;
208
+ }
209
+
206
210
ControllerConfig getConfig () {
207
211
return _cc;
208
212
}
Original file line number Diff line number Diff line change @@ -71,6 +71,11 @@ struct ControllerConfig {
71
71
*/
72
72
uint8_t getNodeId ();
73
73
74
+ /**
75
+ * Return the parent node id.
76
+ */
77
+ uint8_t getParentNodeId ();
78
+
74
79
/**
75
80
* Each node must present all attached sensors before any values can be handled correctly by the controller.
76
81
* It is usually good to present all attached sensors after power-up in setup().
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ inline void transportProcess() {
159
159
}
160
160
return ;
161
161
} else if (sender == GATEWAY_ADDRESS) {
162
- if (type == I_ID_RESPONSE && _nc. nodeId == AUTO ) {
162
+ if (type == I_ID_RESPONSE) {
163
163
_nc.nodeId = _msg.getByte ();
164
164
if (_nc.nodeId == AUTO) {
165
165
// sensor net gateway will return max id if all sensor id are taken
You can’t perform that action at this time.
0 commit comments