Split ESP-NOW into core/master/slave modules, block non-OTA UART traffic during updates, and hold the host serial port exclusively so dashboard polling cannot interleave with firmware uploads. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
260 B
C
12 lines
260 B
C
#ifndef ESP_NOW_MASTER_H
|
|
#define ESP_NOW_MASTER_H
|
|
|
|
#include "esp_err.h"
|
|
#include "esp_now.h"
|
|
|
|
esp_err_t esp_now_master_start(void);
|
|
void esp_now_master_on_recv(const esp_now_recv_info_t *info, const uint8_t *data,
|
|
int len);
|
|
|
|
#endif
|