parentNode and distance
-
Hello,
Until API2.0 I was getting two informations from the nodes:
- parentNode
- distance
I was taking those informations to have an overview how far is a node and who is his parent. All that with this code:
parentNode = _nc.parentNodeId; distance = _nc.distance; (...) send(msgNodeVar1.set(parentNode, 1)); send(msgNodeVar2.set(distance, 1));
Now this is not working anymore...
error: '_nc' was not declared in this scope parentNode = _nc.parentNodeId; ^ exit status 1 '_nc' was not declared in this scope
Any idea?
Thanks,
Simon
-
This post is deleted!
-
@xefil You will find the information here: https://www.mysensors.org/apidocs/group__MyTransportgrp.html - i.e.
transportGetParentNodeId()
and
transportGetDistanceGW()
-
1 out of 4
Suggested Topics
-
Day 1 - Status report
Announcements ⢠23 Mar 2014, 22:45 ⢠hek 24 Mar 2014, 20:12 -
NODs stop responding, but ping works.
Troubleshooting ⢠8 Mar 2025, 19:47 ⢠Marcin 8 Mar 2025, 19:47 -
Getting system time from the controller
Troubleshooting ⢠27 Feb 2025, 01:39 ⢠dpcons 3 Mar 2025, 01:00 -
Can not compile MySensors on esp8266
Troubleshooting ⢠24 Aug 2024, 15:35 ⢠TheoL 29 Aug 2024, 20:47 -
JSN SR04T - Temperature Influencing Readings
Troubleshooting ⢠6 Sept 2019, 07:51 ⢠Timbergetter 20 days ago -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting ⢠29 days ago ⢠bocalexandru 27 days ago