[Swansea Hackspace] ESP8266 follow up

Emyr Morris em at preseli.com
Fri Feb 6 18:21:20 GMT 2015


Hi

been playing a bit more with the ESP today

in my reading I found a tip if you have it working in server mode.

add this line to your script

uart.setup (0,115200,8,0,1,1)

with the UART running at 115200 rather than 9600 the server will respond
faster

I have not tried this yet, as I have shut everything down now.

Earlier on I had a web controlled LED - I was able to control it from
chrome on my iphone and via firefox on my imac (but not with safari on my
iphone)

the LED was on GPIO 2 (pin 4) - I am tempted to add one of these modules to
one of my lamps at home and see how much fun I can have with it!

The script I used was

https://github.com/nodemcu/nodemcu-firmware/blob/master/lua_examples/webap_toggle_pin.lua

I have one module setup with the above in AP mode with an init.lua to auto
start the app so I access it direct via a mobile or laptop.

And I have another module set up with the first two lines commented out so
it joins my office WiFi so I don't have to change any device settings to
access it.

regards

Emyr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://swansea.hackspace.org.uk/pipermail/hackspace/attachments/20150206/3fc874c7/attachment.html>


More information about the Hackspace mailing list