Skip to content

Commit

Permalink
Alias Check() to loop() to better match Arduino style libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdunk committed Feb 4, 2017
1 parent d0601b4 commit 2e9dc17
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void setup() {
}
void loop() {
my_mdns.Check();
my_mdns.loop();
}
```

Expand Down
2 changes: 1 addition & 1 deletion examples/mdns_test/mdns_test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void setup()
unsigned int last_packet_count = 0;
void loop()
{
my_mdns.Check();
my_mdns.loop();

#ifdef DEBUG_STATISTICS
// Give feedback on the percentage of incoming mDNS packets that fitted in buffer.
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/simple.ino
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void setup() {

unsigned int last_packet_count = 0;
void loop() {
my_mdns.Check();
my_mdns.loop();

#ifdef DEBUG_STATISTICS
// Give feedback on the percentage of incoming mDNS packets that fitted in buffer.
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=esp8266_mdns
version=1.1.3
version=1.1.4
author=mrdunk
maintainer=mrdunk
sentence=mDNS queries and responses on esp8266.
Expand Down
2 changes: 1 addition & 1 deletion mdns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void PrintHex(const unsigned char data) {
Serial.print(" ");
}

bool MDns::Check() {
bool MDns::loop() {
if (!init) {
init = true;
Serial.println("Initializing Multicast.");
Expand Down
6 changes: 5 additions & 1 deletion mdns.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ class MDns {
{ };

// Call this regularly to check for an incoming packet.
bool Check();
bool loop();
// Deprecated. Use loop() instead.
bool Check(){
return loop();
}

// Send this MDns packet.
void Send() const;
Expand Down

0 comments on commit 2e9dc17

Please sign in to comment.