Skip to content

Commit 8fcf380

Browse files
authored
chore: update docs & note-c (#25)
* bump version and update installation instructions in readme * remove note-c in order to pull in latest * Squashed 'src/note-c/' content from commit 866e4a0 git-subtree-dir: src/note-c git-subtree-split: 866e4a00abbfabb4dd713b6375b033d9f5aba892
1 parent 401baa8 commit 8fcf380

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

README.md

+7-15
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,13 @@ as a git submodule.
1313

1414
## Installation
1515

16-
1. Download the library as a .zip file from [here][archive] or use the UI
17-
`Clone or download -> Download ZIP`
18-
2. Start the Arduino IDE
19-
3. Open a new or existing sketch which will talk to Notecard
20-
4. Add the library to the Arduino IDE:
21-
```
22-
Sketch -> Include Library -> Add .ZIP Library...
23-
```
24-
and select the previously downloaded .zip file
25-
5. Include the library in your sketch:
26-
```
27-
Sketch -> Include Library -> Contributed libraries -> Blues Wireless Notecard
28-
```
29-
This will have the effect of inserting this line of code at the top of your
30-
sketch:
16+
1. Open the Arduino IDE and click **Tools > Manage Libraries...**.
17+
2. Search for "Blues" in the input box and click the "Install" button next
18+
to the "Blues Wireless Notecard" result.
19+
20+
![](https://wireless.dev/images/guides/first-sensor/arduino/install-library.gif)
21+
22+
3. Create a new sketch and select the Sketch > Include Library > Contributed Libraries > Blues Wireless Notecard menu option, to add the following include to your sketch:
3123
```
3224
#include <Notecard.h>
3325
```

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.3
2+
version=1.2.4
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ bool NoteSleep(char *stateb64, uint32_t seconds, const char *modes) {
551551
if (stringReferenceItem != NULL)
552552
JAddItemToObject(req, "payload", stringReferenceItem);
553553
char modestr[64];
554-
strlcpy(modestr, "arm", sizeof(modestr));
554+
strlcpy(modestr, "sleep", sizeof(modestr));
555555
if (modes != NULL) {
556556
strlcat(modestr, ",", sizeof(modestr));
557557
strlcat(modestr, modes, sizeof(modestr));

0 commit comments

Comments
 (0)