Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ tests/bin
.piolibdeps
.clang_complete
.gcc-flags.json
cmake-build-*/
.idea/
CMakeLists.txt
13 changes: 13 additions & 0 deletions src/PubSubClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,19 @@ boolean PubSubClient::setBufferSize(uint16_t size) {
uint16_t PubSubClient::getBufferSize() {
return this->bufferSize;
}

__attribute__((unused)) IPAddress PubSubClient::getServerIP() const {
return this->ip;
}

__attribute__((unused)) const char *PubSubClient::getServerDomain() const {
return this->domain;
}

__attribute__((unused)) uint16_t PubSubClient::getServerPort() const {
return this->port;
}

PubSubClient& PubSubClient::setKeepAlive(uint16_t keepAlive) {
this->keepAlive = keepAlive;
return *this;
Expand Down
3 changes: 3 additions & 0 deletions src/PubSubClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ class PubSubClient : public Print {

boolean setBufferSize(uint16_t size);
uint16_t getBufferSize();
__attribute__((unused)) IPAddress getServerIP() const;
__attribute__((unused)) const char * getServerDomain() const;
__attribute__((unused)) uint16_t getServerPort() const;

boolean connect(const char* id);
boolean connect(const char* id, const char* user, const char* pass);
Expand Down