-
-
@jumjum
I guess what I'm asking is do you need to include the TLS library from ESP-idf? -
-
I have updated the build tools to use esp-idf 3.0.1
Let's keep a watch here:
https://github.com/espressif/esp-idf/releases
There is a v3.1-beta1 there now.
Should be update the old esp32 branch to current and use that? The v3.0 branch is now named incorrectly for the current v3.1.
I suppose we could drop that branch and add a 3.1 that we can then advance as the beta becomes live?
You mentioned Makefile and path changes that will need to be sorted.
-
-
@JumJum
Do you think it's worth updating to 3.01 ? Looks like there are some bug fixes. -
https://github.com/espressif/esp-idf/releases/tag/v3.0.1
There is a new release - not sure if this addresses any of your concerns.
I can try a build with espruino-build tools and see if it works directly or if there are other changes required.
-
-
Espressif is to allow WROOM or WROVER to be supported with the same binary
They do support this, however it was not in the v3.0 release. It is the working branch ( unstable) at the moment.
To build with wrover with the v3.0, you have to make a change to the library, and then the same binary can't used on a regular board.
-
I think @jumjum was talking about 20,000 at one stage.
-
@DrAzzy
The initial problem you had should be largely sorted by this fix:https://github.com/espruino/Espruino/commit/5c9c7b5c561eda7408b2e5d8194f8127a6a5d5f6
It allows the port to be reused.
-
> require("http").get("http://drazzy.com/time.shtml", function(res) { console.log({GMT:res.headers.Date}); var contents = ""; res.on('data', function(data) { contents += data; }); res.on('close', function() { console.log(contents); setTime(contents); }); }).on('error', function(e) { : console.log("ERROR", e); : }); =undefined { "GMT": "Wed, 13 Jun 2018 11:22:54 GMT" } Wed Jun 13 11:22:54 2018
-
-
-
ohh -0nce a second you are going to the internet to update the time?
Instead do that a lot less frequently - say once an hour - and then set the internal clock to the time, and use the internal clock as your time reference.
What is probably happening is a new call to get the time is made, when the last has not finished.
-
-
The issue is the the build is compiled with 10 sockets.
When you reset, the sockets are not closed. Part of the reason for this, is one of the sockets was the telnet server socket - you would loose your connection to the board.If you saved the result of you your server connect as a global:
var server=require("http").createServer(onPageRequest).listen(7348);
Then before the reset - you could do
server.close()
This will shut down the connect and close the socket.
By the way, are using using a telnet connection? It is so much faster than the com port connection.
Oh - and your call to get the time - rather than have a page that returns the time - you can get the time out of the header..
-
There's a bug in the plugin that has been pushed to npm - lodash forEach - you have to edit that to get it to build which is a real pain.
There has also been some changes to the espruino (confusing name - the npm code that talks to a connected board) that allows you to specify the port as "tcp://1.2.3.4" where 1.2.3.4 is your ip - this sends over tcp rather than serial ansis about a million times quicker.
-
@Gordon
We are currently at v1.99
So will you go three digits on the version v1.100 or are you going to roll over to v2.00?
A bit of a milestone in either case!