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

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

Function Documentation

◆ espSimpleNowCallbackBinRcvd()

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.

References arSize, rxCount, rxData, and txData.

◆ 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 16 of file simplewrite01b.ino.

◆ loop()

void loop ( )

Definition at line 46 of file simplewrite01b.ino.

◆ setup()

void setup ( )

Definition at line 28 of file simplewrite01b.ino.

References espSimpleNowInit().

Here is the call graph for this function:

◆ txTest()

void txTest ( )

Definition at line 37 of file simplewrite01b.ino.

References arSize, espSimpleNowBroadcastData(), txCount, and txData.

Here is the call graph for this function:

Variable Documentation

◆ arSize

const int arSize = 10

Definition at line 9 of file simplewrite01b.ino.

Referenced by espSimpleNowCallbackBinRcvd(), and txTest().

◆ rxCount

int rxCount = 0

Definition at line 13 of file simplewrite01b.ino.

Referenced by espSimpleNowCallbackBinRcvd().

◆ rxData

int rxData[arSize]

Definition at line 11 of file simplewrite01b.ino.

Referenced by espSimpleNowCallbackBinRcvd().

◆ txCount

int txCount = 0

Definition at line 13 of file simplewrite01b.ino.

Referenced by txTest().

◆ txData

int txData[arSize]

Definition at line 11 of file simplewrite01b.ino.

Referenced by espSimpleNowCallbackBinRcvd(), and txTest().