it displayed good a couple of times until I changed some var values and also replace about 4 hard values in the Wpage cod with var names and resaved after about the 3rd save it intermixed..
vars val changed cdeg0, ppm0,ph,
Wpage changed 15 to rfh, cdeg0,ppm0,ph
since the var usage was not correct this may have contributed to the problem..
the intermixing started after textarea col-70 lines=14 ,,, which is where previous display problems occurred[ie]
display stopping...
Once this happens you clear rhe edit window save , open you see no data , then add back you code it will be immediately intermix... had to reflash ....
Is there any way to see how much memory is being used ??
Is there any way to determine flash size with your flash code before flashing , like maybe maybe writing the 1st
8 char of each page and checking when addr0 is over overwritten [ie] address wrap..just a thought
rfctr=0
adc_id = 0
adc_value = 512
k1=0.11
p00='P'
apc0='11111'
ppm0='1770'
cdeg0='25.1'
kta0='0.01'
lo0='12'
hi0='20'
prb='01.0'
ph='7.0'
sbuf=""
rfh = '15'
Ipage = 'http://i.imgur.com/KS1dPa7.png'
wprint "<!DOCTYPE HTML>"
wprint "<html lang='en-US'>"
wprint "<head><meta http-equiv='refresh' content='15' ></head>"
wprint "<script type = 'text/javascript'>"
wprint "var timeInSecs;"
wprint "var ticker;function startTimer(secs){"
wprint "timeInSecs = parseInt(secs)-1;"
wprint "ticker = setInterval('tick()',1000);}"
wprint "function tick() {"
wprint "var secs = timeInSecs;"
wprint "if (secs>0) {timeInSecs--;} else {clearInterval(ticker);"
wprint "startTimer(15);}document.getElementById('countdown').innerHTML = secs;} startTimer(15);"
wprint "</script><body><div>"
wprint "<table bgcolor='Lawngreen' border='1' cellpadding='5'>"
wprint "<th><h1>ESP8266 Blinker Thing!</h1></th>"
wprint "<td><IMG SRC='http://i.imgur.com/KS1dPa7.png' LEFT='1' WIDTH='120' HEIGHT='60' BORDER='1'></td>"
wprint "<th id='countdown'>15</th></table><br>"
wprint "<div><textarea name='cmd1s' cols='70' rows='14'></textarea></div><br>"
wprint "<div><textarea name='cmd2s' cols='70' rows='6'></textarea></div><br>"
wprint "<div><table bgcolor='Yellow' border='1' cellpadding='5'>"
wprint "<tr><th>Sensor</th><th>TempC</th><th>TempF</th><th>PPMcntr</th><th>PPM__</th><th>Adj__1</th><th>Adj__2</th></tr>"
wprint "<tr><td>DS18B20P</td><td>25.9</td><td>78.6</td><td>43708</td><td>1676</td><td>1644.9</td><td>1644.2</td></tr>"
wprint "<tr><th>Probe-K</th><th>Pool-PH</th><th>PH-Adj</th><th>ADC Value</th></tr>"
wprint "<tr><td>01.0</td><td>7.0</td><td>7</td><td bgcolor='Red'>902</td></tr></table></div><br>"
wprint "<form action='' method='POST'>"
wprint "<input type='submit' name='m_do' value='BLINK' style='padding:5px;10px;'>"
wprint "<input type='submit' name='m_do' value='RD_ADC' style='padding:5px;10px;'>"
wprint "<input type='submit' name='m_do' value='TEMP_DN' style='padding:5px;10px;'>"
wprint "<input type='submit' name='m_do' value='TEMP_UP' style='padding:5px;10px;'><br>"
wprint "'CMD:'<input type='text' name='m_do' value='' maxlength='100' style='padding:5px;10px;'>"
wprint "<input type='submit' value='Submit'></form><br></body></html>"
wait