From b5c71cfd18eb145acb72d0a9b58c5b10fbeac74d Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 20 Apr 2013 22:22:19 +0200 Subject: arduino: debuggign prints --- arduino/arduinoAnalogHTTP/analogethernet.ino | 7 +++++++ arduino/arduinoAnalogStomp/analogethernet.ino | 1 + 2 files changed, 8 insertions(+) (limited to 'arduino') 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()"); } diff --git a/arduino/arduinoAnalogStomp/analogethernet.ino b/arduino/arduinoAnalogStomp/analogethernet.ino index feefbd8..09ee42b 100755 --- a/arduino/arduinoAnalogStomp/analogethernet.ino +++ b/arduino/arduinoAnalogStomp/analogethernet.ino @@ -1,3 +1,4 @@ +// vim: filetype=cpp #include #include -- cgit v1.2.1