• I'm hosting the server on AWS - regardless of the speed, there is no way in hell I want to open up my network to incoming connections, pointed at something that I can't lock down to the max +10.

    So I have my Pico periodically checking this URL, and updating it with additional information from sensors, by firing off requests to a php page. Meanwhile, a separate php page can also spit out that information, and the rest of the website is hosted on that system so it can get the data with an xhr. Similarly, commands can be left on the server that get picked up next time it polls.

    I only use server mode when it's only taking requests over the LAN (in fact, part of what the project I mentioned will do is relay commands to another espruino device and a non-espruino device on the LAN which are acting as servers (where appropriate get requests turn lights on and off )

    But, regardless of the security considerations, it sounds like it's much slower than it should be - I think Gordon is the one best placed to answer this; it may be a bug that each chunk is taking so long - or the chunk size needs to be able to go higher.

About

Avatar for DrAzzy @DrAzzy started