-
-
-
I'm not sure if this is the usual output. I can't recall seeing this in the past - the
httpCRq
object is dumped.Perhaps related to @opichals socket changes?
make clean && RELEASE=1 make ./espurino
var http = require("http"); http.get("https://www.google.com", function(res) { res.on('data', function(data) { console.log(data); }); });
=httpCRq { "type": 5, "#onconnect": function (res) { ... }, "res": httpCRs { }, "opt": { "protocol": "https:", "method": "GET", "host": "http://www.google.com", "path": "/", "pathname": "/", "search": null, "port": null, "query": null }, "dSnd": "GET / HTTP/1.1\r\nU" ... "ww.google.com\r\n\r\n", "sckt": 4 } <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>302 Moved</TITLE></HEAD><BO DY> <H1>302 Moved</H1> The document has moved <A HREF="https://www.google.co.nz/?gfe_rd=cr&dcr=0&ei=aTgyWs_3F4rr8we175iYAQ">here</A>. </BODY></HTML>
-
Works for me with latest build from github:
>process.env ={ "VERSION": "1v94.221", "BUILD_DATE": "Dec 14 2017", "BUILD_TIME": "18:16:22", "GIT_COMMIT": "1068563563218c4d427d76b648bc512e5452073f", "BOARD": "ESP32", "CHIP": "ESP32", "CHIP_FAMILY": "ESP32", "FLASH": 0, "RAM": 524288, "SERIAL": "240ac400-2f90", "CONSOLE": "Serial1", "EXPORTS": { "jsvLock": 1074615792, "jsvLockAgainSafe": 1074615936, "jsvUnLock": 1074618520, "jsvSkipName": 1074634588, "jsvMathsOp": 1074644660, "jsvMathsOpSkipNames": 1074647168, "jsvNewFromFloat": 1074630436, "jsvNewFromInteger": 1074630348, "jsvNewFromString": 1074629712, "jsvNewFromBool": 1074630408, "jsvGetFloat": 1074638992, "jsvGetInteger": 1074633396, "jsvGetBool": 1074639572, "jspeiFindInScopes": 1074660864, "jspReplaceWith": 1074660596, "jspeFunctionCall": 1074671028, "jspGetNamedVariable": 1074662364, "jspGetNamedField": 1074662752, "jspGetVarNamedField": 1074662868, "jsvNewWithFlags": 1074629272 } }
var http = require("http"); http.get("https://www.google.com", function(res) { res.on('data', function(data) { console.log(data); }); });
=httpCRq { "type": 5, "#onconnect": function (res) { ... }, "res": httpCRs { }, "opt": { "protocol": "https:", "method": "GET", "host": "http://www.google.com", "path": "/", "pathname": "/", "search": null, "port": null, "query": null }, "dSnd": "GET / HTTP/1.1\r\nU" ... "ww.google.com\r\n\r\n", "sckt": 4 } <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>302 Moved</TITLE></HEAD><BO DY> <H1>302 Moved</H1> The document has moved <A HREF="https://www.google.co.nz/?gfe_rd=cr&dcr=0&ei=MxYyWsjLDJPr8wf5r7CYAg">here</A>. </BODY></HTML>
-
-
The
setwatch
issue has been fixed.It will be in version 1v95, so for now a latest travis build will work:
http://www.espruino.com/binaries/travis/master/ -
The
setwatch
has been fixed.It will be in version 1v95, so for now a latest travis build will work:
http://www.espruino.com/binaries/travis/master/ -
The set watch issue has been fixed:
It will be in version 1v95, so for now a latest travis build will work:
http://www.espruino.com/binaries/travis/master/ -
This issue has been fixed.
It will be in version 1v95, so for now a latest travis build will work:
http://www.espruino.com/binaries/travis/master/ -
Yes - I realised I could cut and paste the code in github online without having to pull locally - and this would create a pull request.
@opichals made a good point on the pull request Comment - the mux should be initialsed.
portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;
https://github.com/espruino/Espruino/pull/1285
@jumjum can you add this to your branch/local code?
Otherwise we will loose on master when we merge.I'm not sure if anyone has tried the code yet to see if this actuall fixes the setwatch issue?
-
@jumjum cc @opichals @Gordon
How do we get this change forjshGetSystemTime()
into the master branch?https://github.com/espruino/Espruino/commit/4ef6eb09735413cdf766138ca3d6e803226160a#diff-17
Only have have access to commit into the ESP32 branch, and we are not ready to pull this into master as the bluetooth stuff is currently in this branch
-
-
There is the native version at the bottom of the page:
https://www.espruino.com/Web+IDE
Here is a pre-built installl for windows.
-
-
-
-
Well done getting it finished.
Take a look here:
http://www.espruino.com/Internals And http://www.espruino.com/Performance
If you shorten your vars to to 4 bytes they are stored as one jsvar.
You debug comments are over multiple lines - console.log can write out an object, so you don't need to dump each of the keys.
-
-
-
Here is your string you want to parse.. that lib will be too big to use.
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:GetBinaryState xmlns:u="urn:Belkin:service:basicevent:1"> <BinaryState>1</BinaryState> </u:GetBinaryState> </s:Body> </s:Envelope>
You should be able to treat as a string and search on
<BinaryState>
and then get the character at the next location - which would be 0 or 1 -
@JumJum
Please can you link to github source so there is some reference.
The first socket does start at zero I would have thought. The inbuilt telnet server I would expect will be using the first socket.