MESHsetWifi(0); if (esp_now_init() != 0) { AddLog(LOG_LEVEL_INFO, PSTR("MSH: Node init failed")); // try to re-launch wifi MESH.role = ROLE_NONE; MESHsetWifi(1); WifiBegin(3, MESH.channel); return; } 0 comments on commit df772b5 Please sign in to comment. Footer...
void send_heartbeat_callback(void* arg) { esp_err_t result = esp_now_send(tx_mac, heartbeat_packet, sizeof(heartbeat_packet)); if (result == ESP_OK) { ESP_LOGI("ESPNOW", "Packet sent"); } else { ESP_LOGE("ESPNOW", "Error sending packet: %s", esp_err_to_name(result))...