summaryrefslogtreecommitdiff
path: root/arduino
diff options
context:
space:
mode:
Diffstat (limited to 'arduino')
-rwxr-xr-xarduino/arduinoAnalogHTTP/analogethernet.ino7
-rwxr-xr-xarduino/arduinoAnalogStomp/analogethernet.ino1
2 files changed, 8 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()");
}
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 <SPI.h>
#include <Ethernet.h>