You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This idea is born from #218 discussion in which I thought it would be easier on users' code to provide a local way of releasing an assigned address in the master node's addrList. The main benefits are
keep bounds checking on addrList internally implemented
ensure the proper value (0) is assigned to the reserved addresses upon release.
Proposal
Basically I want to
#ifndef MESH_NO_MASTER
inlinevoidRF24Mesh::releaseAddress(uint16_t address)
{
for (uint8_t i = 0; i < addrListTop; ++i) {
if (addrList[i].address == address) {
addrList[i].address = 0;
break; // avoid further non-op iterations
}
}
}
#endif
PS - I opened this issue as a reminder.
The text was updated successfully, but these errors were encountered:
* resolves#219
* expose mesh_address in python wrapper
* fix py bindings for getNodeID() and renewAddress()
* don't expose addrList due to unsatisfied implementation details
This idea is born from #218 discussion in which I thought it would be easier on users' code to provide a local way of releasing an assigned address in the master node's
addrList
. The main benefits areaddrList
internally implemented0
) is assigned to the reserved addresses upon release.Proposal
Basically I want to
PS - I opened this issue as a reminder.
The text was updated successfully, but these errors were encountered: