Report Bugs Here

Moderator: Mmiscool

User avatar
By AndyGadget
#69336 ESP8266-12E
ESPBasic 3.0 Alpha69
Hi Mike,
What is the maximum string length allowed?
I'm writing an application which needs a string up to 400 or so characters long and if I create this as a single string the device resets immediately I run it, the maximum being 255 characters
However if I build it up by concatenating shorter strings, things are OK.
e.g. This 500 character string works.
Code: Select allpootle1="0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
pootle2="0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
pootle3="0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
pootle4="0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
pootle5="0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
bigstring=pootle1&pootle2&pootle3&pootle4&pootle5
print len(bigstring)
print bigstring
wait