General area when it fits no where else

Moderator: Mmiscool

User avatar
By Electroguard
#64779 The lengths of variable names used to be limited to 10 characters. so if that limitation still applies then you have several which exceed 10 chars (ie: relative_humidity) which could cause problems.
If you are using greater than a 1Mb build you might want to carefully check through your VARS page to see if you have any 'almost the same name' truncated error duplicates.
User avatar
By PhilTilson
#64793 But he's not using those as variables, EG - they are only strings used to extract the appropriate data. Have a look at his VARS table in his original post.

I still think it's because of the speed1 assignment. In his VARS table that is shown to have a value of 2147483648 which may well exceed some limit or other - maybe even in line 22! :mrgreen:

Phil
User avatar
By mariolatronico
#64820 Hi,
It can be useful?

Code: Select all'' ********************************************************************
' *****                        File Info                         *****
' ********************************************************************
'    Filename: ESP12_Test
'    Date    : 11 / 04 /2017
'    Version : 00
'    Edit. by: MarioLatronico
'    Function: test different code line
'    Firmware: ESP Basic 3.0.Alpha 69
'    Hardware: ESP8266-12e (nodeMCU)  (Dev Board)
' ********************************************************************

'initialize variables and change temp to tempe (temp is used in commands )
desc = "-n.a.-"
icon = "-n.a.-"
tempe = "-n.a.-"
press = "-n.a.-"
speed1 = "-n.a.-"
dir = "-n.a.-"
humid = "-n.a.-"
'this line run (serialprintln)
serialprintln  "Today," & desc & "," & icon & ","  & tempe & "," & press & "," & speed1 & "," & dir & "," & humid
'this line run (print )
print  "Today," & desc & "," & icon & "," & tempe & "," & press & "," & speed1 & "," & dir & "," & humid
'this line fail (println ?)
println  "Today," & desc & "," & icon & "," & tempe & "," & press & "," & speed1 & "," & dir & "," & humid
User avatar
By Mmiscool
#64849 Wow. I am real sorry there man. There is no println command in the basic interpreter.

You can use wprint to send data to the web browser.
Are you trying to send data to the browser window of to the serial.

the regular print command will send data to the browser and serial with a carriage return.

wprint will send it exclusively to the browser.

serialprint will send it exclusively to the serial with no carriage return.

serialprintln will print to the serial with a crragereturn.

Sorry if there was any confusion there.