summaryrefslogtreecommitdiff
path: root/arduino/arduinoAnalogHTTP
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2013-04-20 22:22:19 +0200
committerYves Fischer <yvesf-git@xapek.org>2013-04-20 22:22:19 +0200
commitb5c71cfd18eb145acb72d0a9b58c5b10fbeac74d (patch)
tree08c1ba230915f7220d1c1a2e369bb091d9f20855 /arduino/arduinoAnalogHTTP
parente845e3644020ac1bbd723144ef1542bd21874ba6 (diff)
downloadebus-alt-b5c71cfd18eb145acb72d0a9b58c5b10fbeac74d.tar.gz
ebus-alt-b5c71cfd18eb145acb72d0a9b58c5b10fbeac74d.zip
arduino: debuggign prints
Diffstat (limited to 'arduino/arduinoAnalogHTTP')
-rwxr-xr-xarduino/arduinoAnalogHTTP/analogethernet.ino7
1 files changed, 7 insertions, 0 deletions
diff --git a/arduino/arduinoAnalogHTTP/analogethernet.ino b/arduino/arduinoAnalogHTTP/analogethernet.ino
index 9095eeb..63c53e7 100755
--- a/arduino/arduinoAnalogHTTP/analogethernet.ino
+++ b/arduino/arduinoAnalogHTTP/analogethernet.ino
@@ -20,6 +20,10 @@ void sendKeyValue(const char *key, const char *value) {
delay(500);
return;
}
+ Serial.print("Send ");
+ Serial.print(key);
+ Serial.print("=");
+ Serial.println(value);
client.write("PUT /api/value/");
client.write(key);
@@ -63,15 +67,18 @@ void sendPinValue() {
void setup() {
Serial.begin(9600);
+ Serial.println("Begin init");
// declare the ledPin as an OUTPUT:
pinMode(ledPin, OUTPUT);
// start the Ethernet and UDP: Use DHCP for IP-Configuration
Ethernet.begin(mac);
+ Serial.println("Ethernet init done");
analogReference(EXTERNAL);
delay(1000);
+ Serial.println("Start loop()");
}