From 56911794dd0992f0f363abfa1a3b15503adc8f5f Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Tue, 18 Jun 2024 13:16:05 -0700 Subject: [PATCH] move declaration out of deprecated API group --- RF24Mesh.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/RF24Mesh.h b/RF24Mesh.h index ff56be7..2f2e183 100644 --- a/RF24Mesh.h +++ b/RF24Mesh.h @@ -296,14 +296,6 @@ class ESBMesh /** @deprecated For backward compatibility with older code. Use the synonymous setAddress() instead. */ void setStaticAddress(uint8_t nodeID, uint16_t address); - /** - * Releases the specified address if leased to a mesh node's ID. This is specific to master nodes, so - * network administrators can manage assigned addresses without involving a transaction with nodes that - * might be appropriating them. - * @return True if successfully released, otherwise false. - */ - bool releaseAddress(uint16_t address); - #endif // !defined(MESH_NOMASTER) /**@}*/ @@ -349,6 +341,18 @@ class ESBMesh addrListStruct* addrList; /** @brief The number of entries in the addrListStruct of assigned addresses. */ uint8_t addrListTop; + + /** + * Releases the specified address if leased to a mesh node's ID. + * + * This is specific to master nodes, so + * network administrators can manage assigned addresses without involving a transaction with nodes that + * might be appropriating them. + * + * @param address The address to release from any mesh node. + * @return True if successfully released, otherwise false. + */ + bool releaseAddress(uint16_t address); #endif /**@}*/