Skip to content

Commit

Permalink
Fix Ethernet/Dns compile errrors
Browse files Browse the repository at this point in the history
  • Loading branch information
colagrosso committed Apr 22, 2012
1 parent 6f591ba commit f581c22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Arduino/libraries/Avviso/Avviso.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#endif
#include "Avviso.h"
#include <string.h>
#include <Ethernet.h>
#include <Dns.h>
#include <HTTPClient.h>

Expand All @@ -45,14 +46,14 @@ void AvvisoClass::begin() {
IPAddress remote_addr;

dns.begin(Ethernet.dnsServerIP());
ret = dns.getHostByName(host, remote_addr);
ret = dns.getHostByName(PROWL_API_HOST, remote_addr);
if (AVVISO_DEBUG) {
if (ret == SUCCESS) {
if (ret == 1) {
Serial.print("The IP address of ");
Serial.print(PROWL_API_HOST);
Serial.print(" is: ");
remote_addr.printTo(Serial);
} else if (ret == TIMED_OUT) {
} else if (ret == -1) {
Serial.println("Timed out.");
} else {
Serial.print("Failed with error code: ");
Expand Down

0 comments on commit f581c22

Please sign in to comment.