mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Add bridge management CLI
This commit is contained in:
parent
ea13fa899e
commit
1d45c7ec66
11 changed files with 340 additions and 137 deletions
|
|
@ -11,6 +11,18 @@ public:
|
|||
*/
|
||||
virtual void begin() = 0;
|
||||
|
||||
/**
|
||||
* @brief Stops the bridge.
|
||||
*/
|
||||
virtual void end() = 0;
|
||||
|
||||
/**
|
||||
* @brief Gets the current state of the bridge.
|
||||
*
|
||||
* @return true if the bridge is initialized and running, false otherwise.
|
||||
*/
|
||||
virtual bool getState() const = 0;
|
||||
|
||||
/**
|
||||
* @brief A method to be called on every main loop iteration.
|
||||
* Used for tasks like checking for incoming data.
|
||||
|
|
@ -20,14 +32,14 @@ public:
|
|||
/**
|
||||
* @brief A callback that is triggered when the mesh transmits a packet.
|
||||
* The bridge can use this to forward the packet.
|
||||
*
|
||||
*
|
||||
* @param packet The packet that was transmitted.
|
||||
*/
|
||||
virtual void onPacketTransmitted(mesh::Packet* packet) = 0;
|
||||
|
||||
/**
|
||||
* @brief Processes a received packet from the bridge's medium.
|
||||
*
|
||||
*
|
||||
* @param packet The packet that was received.
|
||||
*/
|
||||
virtual void onPacketReceived(mesh::Packet* packet) = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue