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()
-
4 out of 4
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
DHT22 wrong sensor type in Home Assistant
Troubleshooting • 2 days ago • Commodoreuno about 20 hours ago -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
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