SendtoHTTP argv limit (exceeded!)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
boolie
Normal user
Posts: 20
Joined: 23 May 2018, 21:35

SendtoHTTP argv limit (exceeded!)

#1 Post by boolie » 27 Jul 2018, 23:03

Hi All,

What is the maximum length of the argument string to SendtoHTTP and is there a way to handle larger strings?

I'm finding that my sensor isn't sending data to my Vera controller and I've tried a number of approaches with no success. Finally, in one run I spotted something flash by in the log, 'argv size exceeded', which I think might be relevant.

The commands look like this (this is the longest of them, which is not working):

On DS18A#Temperature
SendtoHTTP 192.168.8.200,80,/port_3480/data_request?id=variableset&DeviceNum=145&serviceId=urn:upnp-org:serviceId:TemperatureSensor1&Variable=CurrentTemperature&Value=[DS18A#Temperature]
endon

Yes, Vera really does need all that cr*p to make it stick a value into a variable! If only they'd support something useful like MQTT ;-)

Any ideas how I can get this one working? Some of my sensors work ok with Vera, so I suspect that the string above is just marginally over the length limit, whatever that limit is (not documented?).

Thanks!

Jeff


Build 20102 - Mega
Libraries ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3
GIT version mega-20180723
Plugins 71 [Normal] [Testing]
Build Md5 caa8bf1572c476754c51a52fcb6978d5
Md5 check passed.
Build time Jul 23 2018 02:14:42
Binary filename ESP_Easy_mega-20180723_test_ESP8266_4096.bin
Various D1 & Sonoffs with ESPEasy, some Tasmota. Domoticz, Z-wave.
ESPEasy Patreon - keep up the good stuff, guys!

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

Re: SendtoHTTP argv limit (exceeded!)

#2 Post by TD-er » 28 Jul 2018, 01:07

Could be the limit currently is 80 bytes, since that's some kind of default length for all kind of parameters in the parse functions.

I guess it should be something larger.

boolie
Normal user
Posts: 20
Joined: 23 May 2018, 21:35

Re: SendtoHTTP argv limit (exceeded!)

#3 Post by boolie » 05 Aug 2018, 21:38

Oh! 80 would definitely be rather small for HTTP requests. Should I raise an issue on github to request a larger value?
Various D1 & Sonoffs with ESPEasy, some Tasmota. Domoticz, Z-wave.
ESPEasy Patreon - keep up the good stuff, guys!

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

Re: SendtoHTTP argv limit (exceeded!)

#4 Post by TD-er » 05 Aug 2018, 21:56

I am working on the settings to make it clear what impact changes will have.
You can add an issue (if there isn't one already).
I agree it may be a little small for http requests.
It is also possible a line in rules may have a rather short limit.

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests