Skip to content

Commit fc42130

Browse files
authored
change legacy 'start' to 'sync' (#72)
1 parent 549aeac commit fc42130

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

examples/Example0_LibrarylessCommunication/Example0_LibrarylessCommunication.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void loop()
7171

7272
// Add a "note" to the Notecard, in the default data notefile. The "body" of the note is
7373
// JSON object completely of our own design, and is passed straight through as-is to notehub.io.
74-
// (Note that we add the "start" flag for demonstration purposes to upload the data instantaneously,
74+
// (Note that we add the "sync" flag for demonstration purposes to upload the data instantaneously,
7575
// so that if you are looking at this on notehub.io you will see the data appearing 'live'.)
7676
// Note that we use a somewhat convoluted way of displaying a floating point number because %f
7777
// isn't supported in many versions of Arduino (newlib).
@@ -80,7 +80,7 @@ void loop()
8080
"{"
8181
"\"req\":\"note.add\""
8282
","
83-
"\"start\":true"
83+
"\"sync\":true"
8484
","
8585
"\"body\":{\"temp\":%d.%02d,\"voltage\":%d.%02d,\"count\":%d}"
8686
"}",

examples/Example1_NotecardBasics/Example1_NotecardBasics.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void loop()
130130
notecard.deleteResponse(rsp);
131131
}
132132

133-
// Enqueue the measurement to the Notecard for transmission to the Notehub, adding the "start"
133+
// Enqueue the measurement to the Notecard for transmission to the Notehub, adding the "sync"
134134
// flag for demonstration purposes to upload the data instantaneously, so that if you are looking
135135
// at this on notehub.io you will see the data appearing 'live'.)
136136
J *req = notecard.newRequest("note.add");

examples/Example5_UsingTemplates/Example5_UsingTemplates.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ void loop()
162162
binaryData.temp = temperature;
163163
binaryData.voltage = voltage;
164164

165-
// Enqueue the measurement to the Notecard for transmission to the Notehub, adding the "start"
166-
// flag for demonstration purposes to upload the data instantaneously, so that if you are looking
167-
// at this on notehub.io you will see the data appearing 'live'.)
165+
// Enqueue the measurement to the Notecard for transmission to the Notehub
168166
J *req = notecard.newRequest("note.add");
169167
if (req != NULL) {
170168
JAddStringToObject(req, "file", "sensors.qo");

0 commit comments

Comments
 (0)