We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f6e889 commit 705b1eeCopy full SHA for 705b1ee
libraries/ESP_NOW/examples/ESP_NOW_Network/ESP_NOW_Network.ino
@@ -363,9 +363,9 @@ void loop() {
363
if (recv_msg_count % REPORT_INTERVAL == 0) {
364
// Report average data to the peers
365
uint32_t avg = calc_average();
366
- new_msg.count = sent_msg_count + 1;
367
new_msg.data = avg;
368
for (auto &peer : peers) {
+ new_msg.count = sent_msg_count + 1;
369
if (!peer->send_message((const uint8_t *)&new_msg, sizeof(new_msg))) {
370
Serial.printf("Failed to send message to peer " MACSTR "\n", MAC2STR(peer->addr()));
371
} else {
0 commit comments