logo elektroda
logo elektroda
X
logo elektroda

ESP8266 - How to make a http link generated via a server on the ESP8266

mariomario 3426 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 15386969
    mariomario
    Level 18  
    I have this code shown below from one YouTube video, I uploaded it to the ESP8266 module.

    ESP8266 - How to make a http link generated via a server on the ESP8266

    Code: C / C++
    Log in, to see the code


    The problem I have is that I don't know how to insert a link to this generated page on the ESP8266 so that it can be clicked on.
    Inserting something like this into the table "char temp[400]":

    Code: HTML, XML
    Log in, to see the code


    Causes the error shown below:

    
    IoT_ESP.ino:36:1: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
    IoT_ESP:46: error: stray '\' in program
    IoT_ESP:46: error: stray '\' in program
    IoT_ESP.ino:51:8: warning: missing terminating " character [enabled by default]
    IoT_ESP:46: error: missing terminating " character
    IoT_ESP.ino: In function 'void handleRoot()':
    IoT_ESP:45: error: expected ')' before 'http'
    stray '\' in program


    INFO: I am programming the ESP8266 in the Arduino IDE with the add-on allowing to program this module
  • ADVERTISEMENT
  • #2 15406242
    mtk3d
    Level 10  
    Try it like this:
    <a href="http://www.google.pl">CLICK</a>
    or like this:
    <a href='http://www.google.pl'>KLIK</a>;
ADVERTISEMENT