Strange ESP-Now Issue - SOLVED
Re: Strange ESP-Now Issue
In a test system I was able to send multiple messages.
Re: Strange ESP-Now Issue
The system cannot find the path specified. (os error 3) ??
Re: Strange ESP-Now Issue
The error almost sounds like after the first send, ESP-Now lost it's object. I assumed the object would be static, if it's not after a send that's got to be an ESP-Now glitch.
Re: Strange ESP-Now Issue
I printed out the ESP-Now object before and after the send; it appears unchanged. Still don't know what error 3 means.
Re: Strange ESP-Now Issue
I will try to fire-up the test system again. Give me an hour or so.
Re: Strange ESP-Now Issue
Need to correct a statement ... the working system is a ESPNow-only remote, but a ESPNow/WiFi local. I will try an ESPNow-only link.
Re: Strange ESP-Now Issue
Dave,
I fixed the error, I had deactivated the ESP-Now object, because my code was intended as a one per boot. To test your issue I simply looped on my code every 10 secs.
Once I commented out the deactivation, the loop ran without issue; every 10 secs it sent a message - I let it run for 7 consecutive sends.
I fixed the error, I had deactivated the ESP-Now object, because my code was intended as a one per boot. To test your issue I simply looped on my code every 10 secs.
Once I commented out the deactivation, the loop ran without issue; every 10 secs it sent a message - I let it run for 7 consecutive sends.
Last edited by MMliam on Thu Jul 28, 2022 10:55 pm, edited 1 time in total.
Re: Strange ESP-Now Issue
Did you have a e0.active(False) at the "end" of your script?
Re: Strange ESP-Now Issue
No, it was just after the send; there was a little extra bookkeeping after that. Frankly, because the code was intended as a send-per-boot, I really didn't need to deactivate.
Re: Strange ESP-Now Issue
In most of my scripts I de-activate e0 before bailing-out. I have had grief in other areas with things being left in "unknown state".
If the issue is resolved, add [Solved] to the title.
If the issue is resolved, add [Solved] to the title.