SendtoHTTP argv limit (exceeded!)
Posted: 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
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