parentNode and distance
xefil last edited by xefil
Until API2.0 I was getting two informations from the nodes:
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
This post is deleted!
@xefil You will find the information here: https://www.mysensors.org/apidocs/group__MyTransportgrp.html - i.e.
xefil last edited by