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 -
Getting system time from the controller
Troubleshooting • 27 Feb 2025, 01:39 • dpcons 3 Mar 2025, 01:00 -
Ghost Child
Troubleshooting • 15 Mar 2025, 07:44 • FcNanoLed 18 Mar 2025, 18:36 -
DHT22 wrong sensor type in Home Assistant
Troubleshooting • 18 days ago • Commodoreuno 12 days ago -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 19 Mar 2025, 21:00 • bocalexandru 21 Mar 2025, 12:05 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28