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

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 Documentation

◆ myPackageType

typedef struct myPackageType myPackageType

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 40 of file simplewrite02.ino.

References rxPkg.

◆ 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 33 of file simplewrite02.ino.

◆ loop()

void loop ( )

Definition at line 100 of file simplewrite02.ino.

◆ setup()

void setup ( )

Definition at line 74 of file simplewrite02.ino.

References espSimpleNowInit(), and txPkg.

Here is the call graph for this function:

◆ txTest()

void txTest ( )

Definition at line 90 of file simplewrite02.ino.

References espSimpleNowBroadcastData(), and txPkg.

Here is the call graph for this function:

Variable Documentation

◆ rxPkg

Definition at line 28 of file simplewrite02.ino.

Referenced by espSimpleNowCallbackBinRcvd().

◆ testData

char testData[12]

Definition at line 69 of file simplewrite02.ino.

◆ testMac

uint8_t testMac[6] = { 1, 2, 3, 4, 5, 6 }

Definition at line 67 of file simplewrite02.ino.

Referenced by testMacAddr().

◆ txPkg

Definition at line 28 of file simplewrite02.ino.

Referenced by setup(), and txTest().