|
espnowSimple 1
|
#include <espnowsimple.h>
Go to the source code of this file.
Data Structures | |
| struct | myPackageType |
| struct | myPackageType2 |
Typedefs | |
| typedef struct myPackageType | myPackageType |
| typedef struct myPackageType2 | myPackageType2 |
Functions | |
| void | espSimpleNowCallbackDataSent (const bool success) |
| void | espSimpleNowCallbackBinRcvd (const uint8_t *data, int len) |
| void | setup () |
| void | txTest () |
| void | loop () |
Variables | |
| myPackageType | txPkg |
| myPackageType | rxPkg |
| myPackageType2 | txPkg2 |
| myPackageType2 | rxPkg2 |
| typedef struct myPackageType myPackageType |
| typedef struct myPackageType2 myPackageType2 |
| void espSimpleNowCallbackBinRcvd | ( | const uint8_t * | data, |
| int | len ) |
the receiving function just copy the received package to local storage You might do it better by implementing a buffer system
Definition at line 64 of file simplewrite03.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 53 of file simplewrite03.ino.
| void loop | ( | ) |
Definition at line 130 of file simplewrite03.ino.
References txTest().

| void setup | ( | ) |
Definition at line 96 of file simplewrite03.ino.
References espSimpleNowInit(), txPkg, and txPkg2.

| void txTest | ( | ) |
Definition at line 117 of file simplewrite03.ino.
References espSimpleNowBroadcastData(), txPkg, and txPkg2.
Referenced by loop().


| myPackageType rxPkg |
Definition at line 46 of file simplewrite03.ino.
| myPackageType2 rxPkg2 |
Definition at line 47 of file simplewrite03.ino.
Referenced by espSimpleNowCallbackBinRcvd().
| myPackageType txPkg |
Definition at line 46 of file simplewrite03.ino.
| myPackageType2 txPkg2 |
Definition at line 47 of file simplewrite03.ino.