I am lost.... kind of.
Posted: Tue Dec 29, 2015 11:17 pm
OK, I have flashed my esp8266-1 (w/ 1MB flash) port of ESPRUINO
This is what I have so far
I have flashed (following the 512k version) using ESP8266Flasher.exe and set it to 1MB with the followings
0x0000 boot_v1.4(b1).bin
0x1000 espruino_esp8266_user1.bin
0x7E000 blank.bin
Question: any different (e.g. blank.bin address) if I have the 1MB version?
Then it takes me a while before I can connect to my AP... I have read and read and I think some docs are either outdated or not for Espruino running on ESP8266.
To start off, one of the URL takes me to https://github.com/espruino/EspruinoBui ... er/ESP8266 (that is 1v83 BTW) I have tried and tried and cant't seem to even load the Wifi Module (yes I did use the chrome extension)
Turns out I found 1v84 here! Great, flashed that... and able to load the WiFi module. Awesome! Again, following examples here (https://github.com/tve/EspruinoDocs/blo ... lashing.md)
wifi.getStatus() seems ok, but wifi.getIPInfo() hits another road block... turns out it's just wifi.getIP()... (I read http://www.espruino.com/Reference#Wifi) but on the other hand wifi.scan() doesn't seems to work. and wifi.save() gives "=undefined" as respond which seems confusing....
Oh I wish the blue LED will turn on when WiFi is connected....
So far this is how much I get... still learning (or more like experimenting) from bits and pieces of information... Not to mention my js is a bit rusty too.
My initial impression, NodeMCU LUA seems more user friendly at the moment... Or at least better documentation.
My next question is how to save my 'program' on to the module?
And will I be able to use the Tx/Rx UART to talk to another device (I can't seems to get the 'serial' class to work yet..)
Finally, again, there are some confusions in documentation/examples because there is the "unofficial, running Espruino" vs the "official Espruino with ESP8266 module"...
This is what I have so far
Code: Select all
_____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|_____|___| _|_| |___|_|_|_|___|
|_| http://espruino.com
1v84.tve_master_588d193 Copyright 2015 G.Williams
WARNING: the esp8266 port is in beta!
Flash map 1MB:512/512, manuf 0xc8 chip 0x4014
>process.env
={
"VERSION": "1v84.tve_master_588d193",
"BUILD_DATE": "Dec 18 2015",
"BUILD_TIME": "07:12:52",
"GIT_COMMIT": "588d19384d7ba8a11273aef66dd13e8e01c51e96",
"BOARD": "ESP8266_BOARD",
"CHIP": "ESP8266",
"CHIP_FAMILY": "ESP8266",
"FLASH": 0, "RAM": 81920,
"SERIAL": "18fe34e6-2cf9",
"CONSOLE": "Serial1",
"EXPORTS": { "jsvLock": 1076007472, "jsvLockAgainSafe": 1076007456, "jsvUnLock": 1075966304, "jsvSkipName": 1075938908,
"jsvMathsOp": 1075891972, "jsvMathsOpSkipNames": 1075881128, "jsvNewFromFloat": 1075969992, "jsvNewFromInteger": 1075970060, "jsvNewFromString": 1075971060,
"jsvNewFromBool": 1075970028, "jsvGetFloat": 1075942580, "jsvGetInteger": 1075936440, "jsvGetBool": 1075942864, "jspeiFindInScopes": 1075866920,
"jspReplaceWith": 1075953740, "jspeFunctionCall": 1075939460, "jspGetNamedVariable": 1075906104, "jspGetNamedField": 1075874816, "jspGetVarNamedField": 1075874300,
"jsvNewWithFlags": 1075969836 }
}
I have flashed (following the 512k version) using ESP8266Flasher.exe and set it to 1MB with the followings
0x0000 boot_v1.4(b1).bin
0x1000 espruino_esp8266_user1.bin
0x7E000 blank.bin
Question: any different (e.g. blank.bin address) if I have the 1MB version?
Then it takes me a while before I can connect to my AP... I have read and read and I think some docs are either outdated or not for Espruino running on ESP8266.
To start off, one of the URL takes me to https://github.com/espruino/EspruinoBui ... er/ESP8266 (that is 1v83 BTW) I have tried and tried and cant't seem to even load the Wifi Module (yes I did use the chrome extension)
Code: Select all
var wifi = require("Wifi");
Turns out I found 1v84 here! Great, flashed that... and able to load the WiFi module. Awesome! Again, following examples here (https://github.com/tve/EspruinoDocs/blo ... lashing.md)
wifi.getStatus() seems ok, but wifi.getIPInfo() hits another road block... turns out it's just wifi.getIP()... (I read http://www.espruino.com/Reference#Wifi) but on the other hand wifi.scan() doesn't seems to work. and wifi.save() gives "=undefined" as respond which seems confusing....
Oh I wish the blue LED will turn on when WiFi is connected....
So far this is how much I get... still learning (or more like experimenting) from bits and pieces of information... Not to mention my js is a bit rusty too.
My initial impression, NodeMCU LUA seems more user friendly at the moment... Or at least better documentation.
My next question is how to save my 'program' on to the module?
And will I be able to use the Tx/Rx UART to talk to another device (I can't seems to get the 'serial' class to work yet..)
Finally, again, there are some confusions in documentation/examples because there is the "unofficial, running Espruino" vs the "official Espruino with ESP8266 module"...