Page 1 of 1

SendtoHTTP argv limit (exceeded!)

Posted: 27 Jul 2018, 23:03
by boolie
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

Re: SendtoHTTP argv limit (exceeded!)

Posted: 28 Jul 2018, 01:07
by TD-er
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.

Re: SendtoHTTP argv limit (exceeded!)

Posted: 05 Aug 2018, 21:38
by boolie
Oh! 80 would definitely be rather small for HTTP requests. Should I raise an issue on github to request a larger value?

Re: SendtoHTTP argv limit (exceeded!)

Posted: 05 Aug 2018, 21:56
by TD-er
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.