-
I just bought the Espruino Wifi (in order to overcome the problems of using separate ESP8266 module that did not respond to HTTP requests and flashing an upgrade did not work).
I cannot Espruino Wifi board v1.1 to work and cannot find working examples..
This code:
Serial2.setup(115200, { rx: A3, tx : A2 });
var wifi = require("ESP8266WiFi_0v25").connect(Serial2, function(err) {
I get error: "No 'ready' after AT+RST"What module name should be used?
It has Espruino 1v87.
Could someone post simplified web server code?
-
Yes, exactly.
My goal is to make Espruino to act as a minimalistic web service that responds to HTTP rrquest with the analog sensor values as Json. Since DHCP is needed in order to avoid hard coding the IP, the bonjour is needed on the client side to find the sercvice ip. Because the device would be headless (no screen or other means to set config), in this way any need to pre-config could be avoided - just plug and play assuming there is DHCP service in the network.Hmm. That would work with Ethernet but WiFi requires still SSID and pw to connect.. Could that be avoided somehow too?
-
Ok got it working with:
But the behavior is the same as with separate ESP8266 module: HTTP request is well received and handled by this code, but response does not arrive to browser when making the request:
Console says "Client served with: ...", but that response never arrives to chrome browser that I am testing with.
What is wrong with the code above or the setup (EspruinoWifi plugged into laptop USB)?