diff options
Diffstat (limited to 'arduino/arduinoAnalogHTTP/analogethernet.ino')
-rwxr-xr-x | arduino/arduinoAnalogHTTP/analogethernet.ino | 7 |
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()"); } |