Skip to content
Discussion options

You must be logged in to vote

The solution seems quite simple. It just requires some simple modifications to the modespnow.c file.

$ diff modespnow.c modespnow.c-ORIG
75c75
<     uint16_t msg_len;           // Length of the message
---
>     uint8_t msg_len;            // Length of the message
90c90
<     (sizeof(espnow_pkt_t) + ESP_NOW_MAX_DATA_LEN_V2));
---
>     (sizeof(espnow_pkt_t) + ESP_NOW_MAX_DATA_LEN));
427c427
<     uint8_t *msg_buf = _get_bytes_len_w(msg, ESP_NOW_MAX_DATA_LEN_V2);
---
>     uint8_t *msg_buf = _get_bytes_len_w(msg, ESP_NOW_MAX_DATA_LEN);
438c438
<         || msg_len > ESP_NOW_MAX_DATA_LEN_V2
---
>         || msg_len > ESP_NOW_MAX_DATA_LEN
802c802
<     { MP_ROM_QSTR(MP_QSTR_MAX_DATA_LEN), MP…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jbgagnon
Comment options

@shariltumin
Comment options

Answer selected by jbgagnon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
3 participants