espnowSimple 1
Loading...
Searching...
No Matches
simplewritetestmac.ino File Reference
#include <espnowsimple.h>
Include dependency graph for simplewritetestmac.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 testMacAddr ()
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 51 of file simplewritetestmac.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 40 of file simplewritetestmac.ino.

◆ loop()

void loop ( )

Definition at line 138 of file simplewritetestmac.ino.

References txTest().

Here is the call graph for this function:

◆ setup()

void setup ( )

Definition at line 103 of file simplewritetestmac.ino.

References espSimpleNowInit(), txPkg, and txPkg2.

Here is the call graph for this function:

◆ testMacAddr()

void testMacAddr ( )

Definition at line 84 of file simplewritetestmac.ino.

References espSimpleNowGetMacAddr(), espSimpleNowSetMacAddr(), and testMac.

Here is the call graph for this function:

◆ txTest()

void txTest ( )

Definition at line 127 of file simplewritetestmac.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 33 of file simplewritetestmac.ino.

◆ rxPkg2

Definition at line 34 of file simplewritetestmac.ino.

◆ txPkg

Definition at line 33 of file simplewritetestmac.ino.

◆ txPkg2

Definition at line 34 of file simplewritetestmac.ino.