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 -
Can not compile MySensors on esp8266
Troubleshooting ā¢ 24 Aug 2024, 15:35 ā¢ TheoL 29 Aug 2024, 20:47 -
Getting system time from the controller
Troubleshooting ā¢ 27 Feb 2025, 01:39 ā¢ dpcons 3 Mar 2025, 01:00 -
Forum Search not working?
Troubleshooting ā¢ 4 Oct 2023, 23:33 ā¢ Gibber 2 Sept 2024, 20:28 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting ā¢ 26 Feb 2025, 00:32 ā¢ dpcons 26 Feb 2025, 06:22 -
Ghost Child
Troubleshooting ā¢ 18 days ago ā¢ FcNanoLed 15 days ago