-
this is offered in Germany at LIDL solder station
will get one and come back with test results ... -
-
-
-
-
also check this ESP12 shifter from adafruit
-
-
-
-
-
-
@tve: no wires, what about the very first time after unboxing the ESP ?
-
take a look at this test results with different pull up resistors
http://dsscircuits.com/articles/effects-of-varying-i2c-pull-up-resistors
-
@tve I like the idea : start "ap" when "sta" fails by default !
ignore this, cannot produce anymore
mode is changing when changing phy and powersave like this ?!
what about
// event Wifi.dhcp_timeout() ? what fires that one ?
try to test save("clear") and restore()
Wifi.save("clear"); resert(); ........ var Wifi = require("Wifi"); Wifi.restore(); Wifi.getStatus(); ={ "mode": "off", "station": "off", "ap": "disabled", "phy": "11g", "powersave": "none", "savedMode": "off" } Wifi.getDetails(); ={ "status": "off", "ssid": "mySSID", "password": "myPassword", "savedSsid": null } >Wifi.getAPDetails(); ={ "status": "disabled", "authMode": "wpa2", "hidden": false, "maxConn": 4, "ssid": "ESP001", "password": "esp00001", "savedSsid": null } >
so it clears the overall wifi configuration and keeps station and access point configuration.
Is that what you implemented for "clear" ? -
results of tests
// tested // // ok Wifi.connect(ssid, options, callback) // ok Wifi.disconnect(callback) // ok Wifi.getAPDetails(callback) // ok Wifi.getAPIP(callback) // ok Wifi.getDetails(callback) // ok Wifi.getDHCPHostname(callback) // ok Wifi.getHostByName(hostname, callback) // ok Wifi.getIP(callback) // ok Wifi.getStatus(callback) // ok Wifi.scan(callback) // ok Wifi.setConfig(settings) // er Wifi.setDHCPHostname(hostname) if hostname is unknown // ok Wifi.startAP(ssid, options, callback) // ok Wifi.stopAP(callback) // ok event Wifi.auth_change(details) // ok event Wifi.associated(details) // ok event Wifi.connected(details) // ok event Wifi.disconnected(details) // ok event Wifi.sta_joined(details) // ok event Wifi.sta_left(details) // ok event Wifi.probe_recv(details) // open // // Wifi.restore() // Wifi.save(what) // event Wifi.dhcp_timeout() ? what fires that one ?
-
-
got further, just connected and mode switches to "sta+ap"
this works fine
Wifi.getHostByName("bbc.co.uk", function(params){ : fn="Wifi.getHostByName()"; : console.log(fn+" params:" + JSON.stringify(params)); // Tested OK : }); =undefined Wifi.getHostByName() params:"212.58.244.22"
and this dumps
> Wifi.getHostByName("bbc.co.ukk", function(params){ : fn="Wifi.getHostByName()"; : console.log(fn+" params:" + JSON.stringify(params)); // Tested ERR : }); =undefined > ets Jan 8 2013,rst cause:1, boot mode:(3,7) load 0x40100000, len 1396, room 16 tail 4 chksum 0x89 load 0x3ffe8000, len 776, room 4 tail 4 chksum 0xe8 load 0x3ffe8308, len 540, room 4 tail 8 chksum 0xc0 csum 0xc0 2nd boot version : 1.4(b1) SPI Speed : 80MHz SPI Mode : QIO SPI Flash Size & Map: 32Mbit(512KB+512KB) jump to run user1 @ 1000
-
-
starting some tests, hit by this: cannot change the mode... stuck in mode = ap
>var Wifi = require("Wifi"); >Wifi.getStatus(); ={ "mode": "ap", "station": "off", "ap": "enabled", "phy": "11n", "powersave": "ps-poll", "savedMode": "off" } >Wifi.setConfig({mode : "sta+ap"}); >Wifi.getStatus(); ={ "mode": "ap", "station": "off", "ap": "enabled", "phy": "11n", "powersave": "ps-poll", "savedMode": "off" }
mode is changing when changing phy and powersave like this ?!
>var Wifi = require("Wifi"); >Wifi.setConfig( {phy : "11g",powersave : "none"} ); >Wifi.getStatus(); ={ "mode": "sta+ap", "station": "off", "ap": "enabled", "phy": "11g", "powersave": "none", "savedMode": "off" }
-
@tve I can run some tests as well, any specific things or the whole wifi ?
-
got one :-)
3f is the GIPO extender and 7f is the eeprom.
pi@rpi001 ~ $ i2cdetect -a -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 3f 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 7f
to change the address ground the Ax ports.
A0 to ground will change the address to 3e and 7eSeems like a simple I2C2.writeTo(addr, my8databits) would set the outputs, I2C2.readFrom(addr,1) would read them.
can confirm that, tried with i2cset and i2cget.
next step do some i2c test in espruino.
-
get you mac in : stlye
>var wifi = require("wifi"); =function () { [native code] } >wifi.getIP().mac; ="5c:cf:7f:05:9a:33"
and wifi.scan lists the AccessPoints
>wifi.scan(function(e,arrayOfAcessPoints) { : if ( arrayOfAcessPoints != null) { : for (var i=0; i<arrayOfAcessPoints.length; i++) { : print("Access point: " + i + " = " + JSON.stringify(arrayOfAcessPoints[i])); : }} else{print("no Access points found"); }}); =undefined Access point: 0 = {"rssi":-45,"channel":1,"authMode":3,"isHidden":false,"ssid":"SBITUmts"} Access point: 1 = {"rssi":-63,"channel":11,"authMode":4,"isHidden":false,"ssid":"SBIT"} Access point: 2 = {"rssi":-85,"channel":11,"authMode":4,"isHidden":false,"ssid":"SBIT"}
many thanks to those who added and fixed it.
-
@user59035 is this the board you are using ?
http://www.14core.com/wp-content/uploads/2015/06/Node-MCU-Pin-Out-Diagram1.png -
this is what I find helpful for now :
//Soft Reset reset(); //Details print("mem:"+JSON.stringify(process.memory())+",version:"+process.env.VERSION+",git_commit:"+process.env.GIT_COMMIT); //WiFi Status var wifi=require("Wifi");wifi.getStatus(); //Hard Reset var esp=require("ESP8266");esp.reboot();
let me know what you use
looks like that in the EDI
Is there a cheap temperature sensor that can handle up to 350°C to adjust this station ?