diff options
author | Federico Fissore <f.fissore@arduino.cc> | 2013-06-26 16:04:55 +0200 |
---|---|---|
committer | Federico Fissore <f.fissore@arduino.cc> | 2013-06-26 16:04:55 +0200 |
commit | bf82b241f55a34543e94cea854d819d0a607988c (patch) | |
tree | fae9fa99088155d956b9c408d02b13f547007dea /libraries/Bridge/examples/XivelyClient | |
parent | 4ba06563af4c74cb37aecf1b34136eec0772b5fb (diff) | |
parent | f07c6f2a52af85a63e9e4ebb98d4673b4183287a (diff) |
Merge branch 'ide-1.5.x-discovery' into dev-ide-1.5.x-discovery
Diffstat (limited to 'libraries/Bridge/examples/XivelyClient')
-rw-r--r-- | libraries/Bridge/examples/XivelyClient/XivelyClient.ino | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libraries/Bridge/examples/XivelyClient/XivelyClient.ino b/libraries/Bridge/examples/XivelyClient/XivelyClient.ino index 48b1403..69f979c 100644 --- a/libraries/Bridge/examples/XivelyClient/XivelyClient.ino +++ b/libraries/Bridge/examples/XivelyClient/XivelyClient.ino @@ -33,10 +33,10 @@ String dataString = ""; void setup() { // start serial port: Bridge.begin(); - Console.begin(); + Serial.begin(9600); - while(!Console); // wait for Network Console to open - Console.println("Xively client"); + while(!Serial); // wait for Network Serial to open + Serial.println("Xively client"); // Do a first update immediately updateData(); @@ -83,7 +83,7 @@ void sendData() { // sendData function finishes the resources are immediately // released. Declaring it global works too, BTW. Process xively; - Console.print("\n\nSending data... "); + Serial.print("\n\nSending data... "); xively.begin("curl"); xively.addParameter("-k"); xively.addParameter("--request"); @@ -94,13 +94,13 @@ void sendData() { xively.addParameter(apiString); xively.addParameter(url); xively.run(); - Console.println("done!"); + Serial.println("done!"); // If there's incoming data from the net connection, - // send it out the Console: + // send it out the Serial: while (xively.available()>0) { char c = xively.read(); - Console.write(c); + Serial.write(c); } } |