Using ESP8266

I am trying to publish antenna direction its an analog input on ESP8266 all good but needs to give a number 0 to 360 I cant see how to get the analog to go to script line 81 can someone help please I have an old brain and this is a steep learning curve for me..

antenna direction.txt (3.13 KB)

Please read that back, and put yourself in our shoes, knowing nothing about what you wrote about, like what "script line 81" looks like.

sorry i tried to dend odf file had to convert it you were guick Thanks

rustyrusty:
sorry i tried to dend odf file had to convert it you were guick Thanks

Autocorrect had a brain fart there

  server.sendContent
  ("<h3 style=text-align:center;font-size:300%;color:red;font-family:tahoma;>"
  "Serial.print("Digital Value of Analog Input :  "); + String(sensorValue)
  );

Putting a Serial.print() in a string is not going to get you the text you want.

This might work if server.sendContent() can take a 'String' argument:

  server.sendContent
  ("<h3 style=text-align:center;font-size:300%;color:red;font-family:tahoma;>"
  "Digital Value of Analog Input :  ");
  server.sendContent(String(sensorValue));

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.