File tree 2 files changed +9
-7
lines changed
hardware/arduino/avr/libraries/Bridge/examples/XivelyClient
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,5 @@ test-bin
26
26
.idea
27
27
28
28
hardware /arduino /avr /libraries /Bridge /examples /XivelyClient /passwords.h
29
+
30
+ hardware /arduino /avr /libraries /Bridge /examples /.DS_Store
Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ String dataString = "";
33
33
void setup () {
34
34
// start serial port:
35
35
Bridge.begin ();
36
- Console .begin ();
36
+ Serial .begin (9600 );
37
37
38
- while (!Console ); // wait for Network Console to open
39
- Console .println (" Xively client" );
38
+ while (!Serial ); // wait for Network Serial to open
39
+ Serial .println (" Xively client" );
40
40
41
41
// Do a first update immediately
42
42
updateData ();
@@ -83,7 +83,7 @@ void sendData() {
83
83
// sendData function finishes the resources are immediately
84
84
// released. Declaring it global works too, BTW.
85
85
Process xively;
86
- Console .print (" \n\n Sending data... " );
86
+ Serial .print (" \n\n Sending data... " );
87
87
xively.begin (" curl" );
88
88
xively.addParameter (" -k" );
89
89
xively.addParameter (" --request" );
@@ -94,13 +94,13 @@ void sendData() {
94
94
xively.addParameter (apiString);
95
95
xively.addParameter (url);
96
96
xively.run ();
97
- Console .println (" done!" );
97
+ Serial .println (" done!" );
98
98
99
99
// If there's incoming data from the net connection,
100
- // send it out the Console :
100
+ // send it out the Serial :
101
101
while (xively.available ()>0 ) {
102
102
char c = xively.read ();
103
- Console .write (c);
103
+ Serial .write (c);
104
104
}
105
105
106
106
}
You can’t perform that action at this time.
0 commit comments