WifiEspNow
ESP-NOW Arduino library for ESP8266 and ESP32
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
EspNowBroadcast.ino File Reference
#include <WifiEspNowBroadcast.h>
#include <WiFi.h>

Functions

void processRx (const uint8_t mac[WIFIESPNOW_ALEN], const uint8_t *buf, size_t count, void *arg)
 
void setup ()
 
void sendMessage ()
 
void loop ()
 

Variables

int ledState = HIGH
 

Detailed Description

EspNowBroadcast.ino demonstrates how to perform ESP-NOW pseudo broadcast with WifiEspNowBroadcast . You need two or more ESP8266 or ESP32 devices to run this example.

All devices should run the same program. You may need to modify the PIN numbers so that you can observe the effect.

With the program running on several devices:

Function Documentation

◆ loop()

void loop ( )

◆ processRx()

void processRx ( const uint8_t  mac[WIFIESPNOW_ALEN],
const uint8_t *  buf,
size_t  count,
void *  arg 
)

◆ sendMessage()

void sendMessage ( )

◆ setup()

void setup ( )

Variable Documentation

◆ ledState

int ledState = HIGH