Send command via HTTP from ESP to second ESP
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 527
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Send command via HTTP from ESP to second ESP
I want to send a SendTo HTTP command from one ESP to another.
The command on the second ESP is executed but the error message is signaled as in the attached screenshot.
Am I making a syntax error?
I note that the command is still carried out.
The command on the second ESP is executed but the error message is signaled as in the attached screenshot.
Am I making a syntax error?
I note that the command is still carried out.
Re: Send command via HTTP from ESP to second ESP
What build are you using?
-
- Normal user
- Posts: 527
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Send command via HTTP from ESP to second ESP
Build:⋄ 20116 - Mega32
System Libraries:⋄ ESP32 SDK v3.3.5-1-g85c43024c
Git Build:⋄ Skrzypowa: Dec 25 2021 09:48:17
Plugin Count:⋄ 25
Build Origin: Self built
Build Time:⋄ Dec 25 2021 09:48:11
Binary Filename:⋄ ESP_Easy_mega_20211225_custom_ESP32_4M316k
Build Platform:⋄ Linux-5.15.10-desktop-1.mga8-x86_64-with-glibc2.2.5
Git HEAD:⋄ pygit2_not_installed
System Libraries:⋄ ESP32 SDK v3.3.5-1-g85c43024c
Git Build:⋄ Skrzypowa: Dec 25 2021 09:48:17
Plugin Count:⋄ 25
Build Origin: Self built
Build Time:⋄ Dec 25 2021 09:48:11
Binary Filename:⋄ ESP_Easy_mega_20211225_custom_ESP32_4M316k
Build Platform:⋄ Linux-5.15.10-desktop-1.mga8-x86_64-with-glibc2.2.5
Git HEAD:⋄ pygit2_not_installed
Re: Send command via HTTP from ESP to second ESP
FYI, I tried several different releases (ages 2020 thru 2022) and none experience this issue.
My theory is that there is a confused plugin that is attempting to process this previously executed command. To identify the culprit, delete the plugins one-by-one until the issue goes away. With luck this will point to the culprit. Or maybe not.
Also, I see that you are using self-built custom firmware. As a sanity check, try a "normal" bin from this release and see if the "Unknown Command" problem occurs.
- Thomas
My theory is that there is a confused plugin that is attempting to process this previously executed command. To identify the culprit, delete the plugins one-by-one until the issue goes away. With luck this will point to the culprit. Or maybe not.
Also, I see that you are using self-built custom firmware. As a sanity check, try a "normal" bin from this release and see if the "Unknown Command" problem occurs.
- Thomas
Re: Send command via HTTP from ESP to second ESP
I think this was fixed not too long ago as I have been looking into the command handling a few months ago.
Also the SendToHTTP command had a rather big make-over last week (blame Thomas for it, he made me do it )
Also the SendToHTTP command had a rather big make-over last week (blame Thomas for it, he made me do it )
-
- Normal user
- Posts: 527
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Send command via HTTP from ESP to second ESP
Thanks a lot for the clarification. The error message itself does not bother me because - as I wrote - the command is carried out.
So I will not replace the FW with a newer one because - as the old rule says - "it works properly - do not change".
But as soon as a new release comes out, I'll test it.
THX
So I will not replace the FW with a newer one because - as the old rule says - "it works properly - do not change".
But as soon as a new release comes out, I'll test it.
THX
Re: Send command via HTTP from ESP to second ESP
Guilty as charged. So I deserve the bit-blaming. But for the record, I'm not the guy that made a certain dev update the HTTP controllers too.Also the SendToHTTP command had a rather big make-over last week (blame Thomas for it, he made me do it)
@mackowiakp, if you are using a ESPEasy HTTP controller plugin then it would be great if you tested @TD-er's latest code (revised sendToHTTP). It should be on his Github repo. A successful validation/approval might help get the changes into a future Mega release.But as soon as a new release comes out, I'll test it.
- Thomas
-
- Normal user
- Posts: 527
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Send command via HTTP from ESP to second ESP
@ ThomasB
Yes you are right. But I don't want to test the new FW on a 24/7 working device (bit necessary).
And I do not have a free ESP32 at the moment, because I noticed this error message on such a platform.
I will order on Shopee, but the delivery will probably take a month.
Yes you are right. But I don't want to test the new FW on a 24/7 working device (bit necessary).
And I do not have a free ESP32 at the moment, because I noticed this error message on such a platform.
I will order on Shopee, but the delivery will probably take a month.
Re: Send command via HTTP from ESP to second ESP
Moah... you may deserve a little credit there too.
Point is that some builds did not fit anymore (what else is new) so I had to take another look at the code and noticed quite some code duplication which triggered my (very severe) code duplication allergy again.
So after scratching my head for a while, I knew I had to make it go away.
Re: Send command via HTTP from ESP to second ESP
Sorry about that. I'll try to do something nice in return. Need any windows washed or grass cut?Moah... you may deserve a little credit there too. Point is that some builds did not fit anymore. {snip snip}
I know what you mean; Best to leave a working device alone.But I don't want to test the new FW on a 24/7 working device (bit necessary).
- Thomas
Re: Send command via HTTP from ESP to second ESP
I'm still running Windows 10 here, can those be washed or do I have to upgrade first?
-
- Normal user
- Posts: 527
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Send command via HTTP from ESP to second ESP
But Linux is like wigwam. No Windows, no Gates but Apache inside
Who is online
Users browsing this forum: No registered users and 33 guests