|
espnowSimple 1
|
#include <espnowsimple.h>
Go to the source code of this file.
Functions | |
| void | espSimpleNowCallbackDataSent (const bool success) |
| void | espSimpleNowCallbackBinRcvd (const uint8_t *data, int len) |
| void | setup () |
| void | txTest () |
| void | loop () |
Variables | |
| const int | arSize = 10 |
| int | txData [arSize] |
| int | rxData [arSize] |
| int | txCount = 0 |
| int | rxCount = 0 |
| void espSimpleNowCallbackBinRcvd | ( | const uint8_t * | data, |
| int | len ) |
The callback you shall implement as to get data
void espSimpleNowCallbackBinRcvd(const uint8_t *data, int len) { your code }
Definition at line 20 of file simplewrite01b.ino.
| void espSimpleNowCallbackDataSent | ( | const bool | success | ) |
The callback you shall implement as to check if data has been send NB esp now do not guarantee if data is received in same order as you did tx - ifff you are heavily loading the system
void espSimpleNowCallbackDataSent(const bool success) { }
to check if data has been send to get data
Definition at line 16 of file simplewrite01b.ino.
| void loop | ( | ) |
Definition at line 46 of file simplewrite01b.ino.
| void setup | ( | ) |
Definition at line 28 of file simplewrite01b.ino.
References espSimpleNowInit().

| void txTest | ( | ) |
Definition at line 37 of file simplewrite01b.ino.
References arSize, espSimpleNowBroadcastData(), txCount, and txData.

| const int arSize = 10 |
Definition at line 9 of file simplewrite01b.ino.
Referenced by espSimpleNowCallbackBinRcvd(), and txTest().
| int rxCount = 0 |
Definition at line 13 of file simplewrite01b.ino.
Referenced by espSimpleNowCallbackBinRcvd().
| int rxData[arSize] |
Definition at line 11 of file simplewrite01b.ino.
Referenced by espSimpleNowCallbackBinRcvd().
| int txCount = 0 |
Definition at line 13 of file simplewrite01b.ino.
Referenced by txTest().
| int txData[arSize] |
Definition at line 11 of file simplewrite01b.ino.
Referenced by espSimpleNowCallbackBinRcvd(), and txTest().