Library to easily communicate with XBee modules.
Fork of XBeeLib by
Diff: FrameHandlers/FH_AtCmdResp.h
- Revision:
- 6:06522f3a6642
- Parent:
- 4:629712865107
diff -r da2ea7a76243 -r 06522f3a6642 FrameHandlers/FH_AtCmdResp.h --- a/FrameHandlers/FH_AtCmdResp.h Thu Mar 31 11:39:30 2016 +0200 +++ b/FrameHandlers/FH_AtCmdResp.h Thu Jul 28 10:17:20 2016 +0200 @@ -82,6 +82,40 @@ * @defgroup callback_types "Callback types declaration" * @{ */ +/** Node Discovery Response callback type declaration for ZigBee + * @param remote discovered remote node. + * @param node_id Node Identifier (NI parameter) of remote. + */ +typedef void (*node_discovery_dm_cb_t)(const RemoteXBeeDM& remote, char const * const node_id); +/** + * @} + */ + +class FH_NodeDiscoveryDM : public FH_AtCmdResp +{ + private: + /** Callback function, invoked (if registered) when an at command response packet is received */ + node_discovery_dm_cb_t node_discovery_cb; + + public: + + /** Class constructor */ + FH_NodeDiscoveryDM(); + + /** Class destructor */ + virtual ~FH_NodeDiscoveryDM(); + + virtual void process_frame_data(const ApiFrame *const frame); + + virtual void register_node_discovery_cb(node_discovery_dm_cb_t function); + + virtual void unregister_node_discovery_cb(); +}; + +/** + * @defgroup callback_types "Callback types declaration" + * @{ + */ /** Node Discovery Response callback type declaration for 802.15.4 * @param remote discovered remote node. * @param node_id Node Identifier (NI parameter) of remote.