Skip to content

Commit

Permalink
chore: update docs & note-c (#25)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
bsatrom authored Oct 1, 2020
1 parent 401baa8 commit 8fcf380
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
22 changes: 7 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,13 @@ as a git submodule.

## Installation

1. Download the library as a .zip file from [here][archive] or use the UI
`Clone or download -> Download ZIP`
2. Start the Arduino IDE
3. Open a new or existing sketch which will talk to Notecard
4. Add the library to the Arduino IDE:
```
Sketch -> Include Library -> Add .ZIP Library...
```
and select the previously downloaded .zip file
5. Include the library in your sketch:
```
Sketch -> Include Library -> Contributed libraries -> Blues Wireless Notecard
```
This will have the effect of inserting this line of code at the top of your
sketch:
1. Open the Arduino IDE and click **Tools > Manage Libraries...**.
2. Search for "Blues" in the input box and click the "Install" button next
to the "Blues Wireless Notecard" result.

![](https://wireless.dev/images/guides/first-sensor/arduino/install-library.gif)

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:
```
#include <Notecard.h>
```
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Blues Wireless Notecard
version=1.2.3
version=1.2.4
author=Blues Wireless
maintainer=Blues Wireless <[email protected]>
sentence=An easy to use Notecard Library for Arduino.
Expand Down
2 changes: 1 addition & 1 deletion src/note-c/n_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ bool NoteSleep(char *stateb64, uint32_t seconds, const char *modes) {
if (stringReferenceItem != NULL)
JAddItemToObject(req, "payload", stringReferenceItem);
char modestr[64];
strlcpy(modestr, "arm", sizeof(modestr));
strlcpy(modestr, "sleep", sizeof(modestr));
if (modes != NULL) {
strlcat(modestr, ",", sizeof(modestr));
strlcat(modestr, modes, sizeof(modestr));
Expand Down

0 comments on commit 8fcf380

Please sign in to comment.