File tree 1 file changed +4
-4
lines changed
examples/Example0_LibrarylessCommunication
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,16 +57,16 @@ void setup()
57
57
// This command (required) causes the data to be delivered to the Project on notehub.io that has claimed
58
58
// this Product ID. (see above)
59
59
if (myProductID[0 ]) {
60
- txRxPinsSerial.println (" {\" req \" :\" hub.set\" ,\" product\" :\" " myProductID " \" }" );
60
+ txRxPinsSerial.println (" {\" cmd \" :\" hub.set\" ,\" product\" :\" " myProductID " \" }" );
61
61
}
62
62
// This command determines how often the Notecard connects to the service. If "continuous" the Notecard
63
63
// immediately establishes a session with the service at notehub.io, and keeps it active continuously.
64
64
// Because of the power requirements of a continuous connection, a battery powered device would instead
65
65
// only sample its sensors occasionally, and would only upload to the service on a periodic basis.
66
66
#if myLiveDemo
67
- txRxPinsSerial.println (" {\" req \" :\" hub.set\" ,\" mode\" :\" continuous\" }" );
67
+ txRxPinsSerial.println (" {\" cmd \" :\" hub.set\" ,\" mode\" :\" continuous\" }" );
68
68
#else
69
- txRxPinsSerial.println (" {\" req \" :\" hub.set\" ,\" mode\" :\" periodic\" ,\" outbound\" :60}" );
69
+ txRxPinsSerial.println (" {\" cmd \" :\" hub.set\" ,\" mode\" :\" periodic\" ,\" outbound\" :60}" );
70
70
#endif
71
71
72
72
}
@@ -96,7 +96,7 @@ void loop()
96
96
char message[150 ];
97
97
snprintf (message, sizeof (message),
98
98
" {"
99
- " \" req \" :\" note.add\" "
99
+ " \" cmd \" :\" note.add\" "
100
100
" ,"
101
101
" \" sync\" :true"
102
102
" ,"
You can’t perform that action at this time.
0 commit comments