parentNode and distance
Troubleshooting
4
Posts
3
Posters
674
Views
2
Watching
-
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 scopeAny idea?
Thanks,
Simon
-
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 scopeAny idea?
Thanks,
Simon