Send command via HTTP from ESP to second ESP

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mackowiakp
Normal user
Posts: 527
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Send command via HTTP from ESP to second ESP

#1 Post by mackowiakp » 27 Jul 2022, 15:01

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.
Screenshot_20220727_145429.png
Screenshot_20220727_145429.png (51.57 KiB) Viewed 3180 times

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Send command via HTTP from ESP to second ESP

#2 Post by TD-er » 27 Jul 2022, 15:32

What build are you using?

mackowiakp
Normal user
Posts: 527
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Re: Send command via HTTP from ESP to second ESP

#3 Post by mackowiakp » 27 Jul 2022, 16:07

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

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Send command via HTTP from ESP to second ESP

#4 Post by ThomasB » 27 Jul 2022, 19:57

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

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Send command via HTTP from ESP to second ESP

#5 Post by TD-er » 27 Jul 2022, 22:37

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 ;) )

mackowiakp
Normal user
Posts: 527
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Re: Send command via HTTP from ESP to second ESP

#6 Post by mackowiakp » 27 Jul 2022, 23:46

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

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Send command via HTTP from ESP to second ESP

#7 Post by ThomasB » 28 Jul 2022, 00:27

Also the SendToHTTP command had a rather big make-over last week (blame Thomas for it, he made me do it)
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. :)
But as soon as a new release comes out, I'll test 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.

- Thomas

mackowiakp
Normal user
Posts: 527
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Re: Send command via HTTP from ESP to second ESP

#8 Post by mackowiakp » 28 Jul 2022, 01:05

@ 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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Send command via HTTP from ESP to second ESP

#9 Post by TD-er » 28 Jul 2022, 01:11

ThomasB wrote: 28 Jul 2022, 00:27
Also the SendToHTTP command had a rather big make-over last week (blame Thomas for it, he made me do it)
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. :)
[...]
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.

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Send command via HTTP from ESP to second ESP

#10 Post by ThomasB » 28 Jul 2022, 02:53

Moah... you may deserve a little credit there too. Point is that some builds did not fit anymore. {snip snip}
Sorry about that. I'll try to do something nice in return. Need any windows washed or grass cut?
But I don't want to test the new FW on a 24/7 working device (bit necessary).
I know what you mean; Best to leave a working device alone.

- Thomas

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Send command via HTTP from ESP to second ESP

#11 Post by TD-er » 28 Jul 2022, 10:45

ThomasB wrote: 28 Jul 2022, 02:53 [...] Need any windows washed or grass cut?
[...]
I'm still running Windows 10 here, can those be washed or do I have to upgrade first?

mackowiakp
Normal user
Posts: 527
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Re: Send command via HTTP from ESP to second ESP

#12 Post by mackowiakp » 28 Jul 2022, 11:00

But Linux is like wigwam. No Windows, no Gates but Apache inside :D

Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests