Skip to content

Commit

Permalink
ADD: Function for sending multi char
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Keller committed Aug 13, 2017
1 parent ea45258 commit 526b3db
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
9 changes: 9 additions & 0 deletions OpenBCI_Wifi_Master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,15 @@ void OpenBCI_Wifi_Master_Class::sendStringLast(const char *str) {
bufferTxClear();
}

/**
* Will send a const char string (less than 32 bytes) to the wifi shield, call
* sendStringLast to indicate to the wifi shield the multi part transmission is over.
* @param str const char * less than 32 bytes to be sent over SPI
*/
void OpenBCI_Wifi_Master_Class::sendStringMulti(char c) {
sendStringMulti((const char*)c);
}

/**
* Will send a const char string (less than 32 bytes) to the wifi shield, call
* sendStringLast to indicate to the wifi shield the multi part transmission is over.
Expand Down
1 change: 1 addition & 0 deletions OpenBCI_Wifi_Master.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class OpenBCI_Wifi_Master_Class {
boolean remove(void);
void reset(void);
void sendGains(uint8_t, uint8_t *);
void sendStringMulti(char);
void sendStringMulti(const char *);
void sendStringLast();
void sendStringLast(const char *);
Expand Down
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# v1.0.0

Ready for release!
## Release Candidate

### New Functions

* Add `sendStringMulti(char)`

## Release Candidate 1

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=OpenBCI_Wifi_Master
version=1.0.0-rc1
version=1.0.0-rc2
author=AJ Keller <[email protected]>
maintainer=AJ Keller <[email protected]>
sentence=The library for controlling Push The World - OpenBCI Wifi Shield
Expand Down

0 comments on commit 526b3db

Please sign in to comment.