Skip to content

Commit 678a73c

Browse files
committed
update examples to align with Notecarrier-AF; change start:true to sync:true
1 parent cf8ad01 commit 678a73c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

examples/Example1_NotecardBasics/Example1_NotecardBasics.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void loop() {
132132
// at this on notehub.io you will see the data appearing 'live'.)
133133
J *req = notecard.newRequest("note.add");
134134
if (req != NULL) {
135-
JAddBoolToObject(req, "start", true);
135+
JAddBoolToObject(req, "sync", true);
136136
J *body = JCreateObject();
137137
if (body != NULL) {
138138
JAddNumberToObject(body, "temp", temperature);

examples/Example2_PeriodicCommunications/Example2_PeriodicCommunications.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// Note that both of these definitions are optional; just prefix either line with // to remove it.
3636
// Remove serialNotecard if you wired your Notecard using I2C SDA/SCL pins instead of serial RX/TX
3737
// Remove serialDebug if you don't want the Notecard library to output debug information
38-
#define serialNotecard Serial1
38+
// #define serialNotecard Serial1
3939
#define serialDebugOut Serial
4040

4141
// This is the unique Product Identifier for your device.

examples/Example6_SensorTutorial/Example6_SensorTutorial.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void loop() {
7373
J *req = notecard.newRequest("note.add");
7474
if (req != NULL) {
7575
JAddStringToObject(req, "file", "sensors.qo");
76-
JAddBoolToObject(req, "start", true);
76+
JAddBoolToObject(req, "sync", true);
7777

7878
J *body = JCreateObject();
7979
if (body != NULL) {

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Blues Wireless Notecard
2-
version=1.2.8
2+
version=1.2.9
33
author=Blues Wireless
44
maintainer=Blues Wireless <[email protected]>
55
sentence=An easy to use Notecard Library for Arduino.

src/note-c/n_helpers.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ bool NoteWake(int stateLen, void *state) {
830830
return false;
831831

832832
// Send it a command to request the saved state
833-
JAddBoolToObject(req, "start", true);
833+
JAddBoolToObject(req, "sync", true);
834834
J *rsp = NoteRequestResponse(req);
835835
if (rsp == NULL)
836836
return false;
@@ -1074,7 +1074,7 @@ bool NoteAdd(const char *target, J *body, bool urgent) {
10741074

10751075
// Initiate sync NOW if it's urgent
10761076
if (urgent)
1077-
JAddBoolToObject(req, "start", true);
1077+
JAddBoolToObject(req, "sync", true);
10781078

10791079
// Perform the transaction
10801080
return NoteRequest(req);

0 commit comments

Comments
 (0)