Re: IOT example GPIO/ADC web client and web server
Posted: Thu Nov 27, 2014 2:38 pm
no longer crash with the wrong request. not anymore
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
alonewolfx2 wrote:tadaa it crashed with tcp request
[code]GET / TCP\r\n\r\n
dofile("filename.lua")
<html>
<head>
<title>My first PHP page</title>
</head>
<body>
<?php
echo "<h1>Hello World!</h1>";
?>
</body>
</html>
<html>
<head>
<title>My first LUA page</title>
</head>
<body>
<?lua
conn:send("<h1>Hello World!</h1>")
conn:send("Your Ip is : " .. wifi.sta.getip())
print("This debug lines goes to the serial port")
dofile("somecode.lua","param1","param2")
?>
</body>
</html>