<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">To vim a send CB sleduju, to prave
pozna vypnute zarizeni nebo mimo dosah. Ale asi se jeste nestalo,
ze by to poznalo ztratu paketu</div>
<div class="moz-cite-prefix">Mechanismus opakovani na zaklade
odpovedi a kontrolu ID paketu tam mam, proto to poznam, ale je mi
to divne.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Dne 03.12.2023 v 11:25 Ladislav Vaiz
napsal(a):<br>
</div>
<blockquote type="cite"
cite="mid:1cb67eff-bc39-3e83-ca8e-e11b462da23a@nagano.cz">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">Call <a class="reference internal"
href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_now.html#_CPPv412esp_now_sendPK7uint8_tPK7uint8_t6size_t"
title="esp_now_send" moz-do-not-send="true"><code
class="xref cpp cpp-func docutils
literal notranslate"><span class="pre">esp_now_send()</span></code></a>
to send ESP-NOW data and <a class="reference internal"
href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_now.html#_CPPv424esp_now_register_send_cb17esp_now_send_cb_t"
title="esp_now_register_send_cb" moz-do-not-send="true"><code
class="xref cpp cpp-func
docutils literal notranslate"><span class="pre">esp_now_register_send_cb()</span></code></a>
to register sending callback function. It will return <cite>ESP_NOW_SEND_SUCCESS</cite>
in sending callback function if the data is received
successfully on the MAC layer. Otherwise, it will return <cite>ESP_NOW_SEND_FAIL</cite>.
Several reasons can lead to ESP-NOW fails to send data. For
example, the destination device does not exist; the channels of
the devices are not the same; the action frame is lost when
transmitting on the air, etc. It is not guaranteed that
application layer can receive the data. If necessary, send back
ack data when receiving ESP-NOW data. If receiving ack data
timeouts, retransmit the ESP-NOW data. A sequence number can
also be assigned to ESP-NOW data to drop the duplicate data.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><a class="moz-txt-link-freetext"
href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_now.html"
moz-do-not-send="true">https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_now.html</a></div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 03.12.2023 11:12, Jaroslav Buchta
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:25b8e023-a913-48e0-8f21-ddfc9a59080e@hascomp.cz">Je to
velmi jednoduche a lakave na pouziti, hral si s tim uz nekdo? <br>
<br>
Funguje to skoro skvele, jen se ztraci sem tam pakety, asi
2-10%. Nekdy hodne casto, nekdy treba desitky sec. to bezi bez
ztraty. <br>
<br>
Je to zajimave, protoze to ma evidentne nejaky rezim
potvrzovani, kdyz je cilove zarizeni vypnute, pozna to a pri
vysilani vrati chybu. Jinak se na prijimacim zarizeni obcas
paket ztrati, obcas ho to vysle duplicitne (zopakuje) behem par
desitek ms. <br>
<br>
Ale ani v jednom pripade nehlasi ztratu. Zarizeni jsou vedle
sebe, sila signalu je luxusni. <br>
<br>
Je to vlastnost WiFi, ze je to takto ztratove, nebo mam nakonec
hledat chybu ve svem programu? Dalsich zdroju WiFi tu par je,
kanaly jsem zkousel ruzne i sirku pasma 20/40 ale vyznamny vliv
jsem nepozoroval. </blockquote>
<br>
</blockquote>
<p><br>
</p>
</body>
</html>