|
espnowSimple 1
|
#include <espnowsimple.h>
Go to the source code of this file.
Data Structures | |
| struct | myPackageType |
Typedefs | |
| typedef struct myPackageType | myPackageType |
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 |
| uint8_t | testMac [6] = { 1, 2, 3, 4, 5, 6 } |
| char | testData [12] |
| typedef struct myPackageType myPackageType |
| 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 40 of file simplewrite02.ino.
References rxPkg.
| 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 33 of file simplewrite02.ino.
| void loop | ( | ) |
Definition at line 100 of file simplewrite02.ino.
| void setup | ( | ) |
Definition at line 74 of file simplewrite02.ino.
References espSimpleNowInit(), and txPkg.

| void txTest | ( | ) |
Definition at line 90 of file simplewrite02.ino.
References espSimpleNowBroadcastData(), and txPkg.

| myPackageType rxPkg |
Definition at line 28 of file simplewrite02.ino.
Referenced by espSimpleNowCallbackBinRcvd().
| char testData[12] |
Definition at line 69 of file simplewrite02.ino.
| uint8_t testMac[6] = { 1, 2, 3, 4, 5, 6 } |
Definition at line 67 of file simplewrite02.ino.
Referenced by testMacAddr().
| myPackageType txPkg |
Definition at line 28 of file simplewrite02.ino.