Skip to content

Commit

Permalink
test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
flash62au committed Jun 10, 2024
1 parent 59f4562 commit 3d0f39e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'WithrottleProtocol'
project = 'WiThrottleProtocol'
copyright = '2023 - lucadentella, Peter Akers'
author = 'Peter Akers'

Expand Down
21 changes: 18 additions & 3 deletions src/WiThrottleProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,32 @@ class NullStream : public Stream {
size_t write(const uint8_t *buffer, size_t size) { return size; }
};

/// @brief Class for the
/// @brief Class for the Delegate methods
class WiThrottleProtocolDelegate
{
public:
/// @brief Constructor
/// @param id Route ID
/// @brief Delegate method to receive the WiThrottle version
/// @param version Version Number
virtual void receivedVersion(String version) {}

/// @brief Delegate method to receive the Server Type
/// @param type Server Type
virtual void receivedServerType(String type) {}

/// @brief Delegate method to receive the Server Decription
/// @param type Server Description
virtual void receivedServerDescription(String description) {}

/// @brief Delegate method to receive a message from the Withrottle Server
/// @param message Message Content
virtual void receivedMessage(String message) {}

/// @brief Delegate method to receive a broadcast Alert from the Withrottle Server
/// @param alert Broadcast Alert content
virtual void receivedAlert(String alert) {}

/// @brief Delegate method to receive the total number of Roster Entries from the Withrottle Server
/// @param rosterSize total number of Roster Entries from the Withrottle Server
virtual void receivedRosterEntries(int rosterSize) {}
virtual void receivedRosterEntry(int index, String name, int address, char length) {}

Expand Down

0 comments on commit 3d0f39e

Please sign in to comment.