espnowSimple 1
Loading...
Searching...
No Matches
simplewrite03.ino File Reference
#include <espnowsimple.h>
Include dependency graph for simplewrite03.ino:

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 Documentation

◆ myPackageType

typedef struct myPackageType myPackageType

◆ myPackageType2

typedef struct myPackageType2 myPackageType2

Function Documentation

◆ espSimpleNowCallbackBinRcvd()

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.

References rxPkg, and rxPkg2.

◆ espSimpleNowCallbackDataSent()

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.

◆ loop()

void loop ( )

Definition at line 130 of file simplewrite03.ino.

References txTest().

Here is the call graph for this function:

◆ setup()

void setup ( )

Definition at line 96 of file simplewrite03.ino.

References espSimpleNowInit(), txPkg, and txPkg2.

Here is the call graph for this function:

◆ txTest()

void txTest ( )

Definition at line 117 of file simplewrite03.ino.

References espSimpleNowBroadcastData(), txPkg, and txPkg2.

Referenced by loop().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ rxPkg

Definition at line 46 of file simplewrite03.ino.

◆ rxPkg2

Definition at line 47 of file simplewrite03.ino.

Referenced by espSimpleNowCallbackBinRcvd().

◆ txPkg

Definition at line 46 of file simplewrite03.ino.

◆ txPkg2

Definition at line 47 of file simplewrite03.ino.

Referenced by setup(), and txTest().