Skip to content

Commit 2a5e7aa

Browse files
authored
feat: update hub set to use outbound and inbound (#26)
* remove note-c to update * Squashed 'src/note-c/' content from commit 5820bde git-subtree-dir: src/note-c git-subtree-split: 5820bde69bcf0a558def0ca5137be21a32466a85 * update examples to use outbound and inbound for hub.set * bump version to 1.2.5
1 parent 8fcf380 commit 2a5e7aa

25 files changed

+3979
-242
lines changed

examples/Example0_LibrarylessCommunication/Example0_LibrarylessCommunication.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void setup() {
4747
#if myLiveDemo
4848
serialNotecard.println("{\"req\":\"service.set\",\"mode\":\"continuous\"}");
4949
#else
50-
serialNotecard.println("{\"req\":\"service.set\",\"mode\":\"periodic\",\"minutes\":60}");
50+
serialNotecard.println("{\"req\":\"service.set\",\"mode\":\"periodic\",\"outbound\":60}");
5151
#endif
5252

5353
}

examples/Example2_PeriodicCommunications/Example2_PeriodicCommunications.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ void setup() {
8787
// This sets the notecard's connectivity mode to periodic, rather than being continuously connected
8888
JAddStringToObject(req, "mode", "periodic");
8989

90-
// This parameter establishes how often the Notecard will check for data that is waiting to be
90+
// This parameter establishes how often, in minutes, the Notecard will check for data that is waiting to be
9191
// uploaded to the service. Generally this might be something like 60 minutes, or perhaps even
9292
// 12 hours * 60 min = 720 min. For the purpose of this demonstration, however, we'll set the
9393
// period such that it checks for outgoing data at most every 2 minutes.
94-
JAddNumberToObject(req, "minutes", 2);
94+
JAddNumberToObject(req, "outbound", 2);
9595

96-
// This parameter establishes how often the Notecard will check for data that is waiting on the
96+
// This parameter establishes how often, in minutes, the Notecard will check for data that is waiting on the
9797
// service to be downloaded to the Notecard. Generally this might be 12, 24, or even 48 hours,
9898
// however for the purpose of this demonstration we will connect to the service to check for
9999
// incoming data at least once every hour.
100-
JAddNumberToObject(req, "hours", 1);
100+
JAddNumberToObject(req, "inbound", 60);
101101

102102
// Issue the request
103103
notecard.sendRequest(req);

examples/Example3_InboundPolling/Example3_InboundPolling.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void setup() {
7171
JAddBoolToObject(req, "sync", true); // Automatically sync when changes are made on notehub
7272
#else
7373
JAddStringToObject(req, "mode", "periodic");
74-
JAddNumberToObject(req, "minutes", 60);
74+
JAddNumberToObject(req, "outbound", 60);
7575
#endif
7676
notecard.sendRequest(req);
7777

examples/Example4_InboundInterrupts/Example4_InboundInterrupts.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void setup() {
7575
JAddBoolToObject(req, "sync", true);
7676
#else
7777
JAddStringToObject(req, "mode", "periodic");
78-
JAddNumberToObject(req, "minutes", 60);
78+
JAddNumberToObject(req, "outbound", 60);
7979
#endif
8080
notecard.sendRequest(req);
8181

examples/Example5_UsingTemplates/Example5_UsingTemplates.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void setup() {
8080

8181
// This command determines how often the Notecard connects to the service.
8282
JAddStringToObject(req, "mode", "periodic");
83-
JAddNumberToObject(req, "minutes", 5);
83+
JAddNumberToObject(req, "outbound", 5);
8484

8585
// Issue the request, telling the Notecard how and how often to access the service.
8686
// This results in a JSON message to Notecard formatted like:

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.4
2+
version=1.2.5
33
author=Blues Wireless
44
maintainer=Blues Wireless <[email protected]>
55
sentence=An easy to use Notecard Library for Arduino.

src/note-c/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
Doxyfile.bak
3+
latex/
4+
html/

0 commit comments

Comments
 (0)