• can anyone run some sanity tests on other platforms?

    Actually a really good start would be just make clean;DEBUG=1 make in Linux and then ./espruino --test test123.js - you can grep and there are definitely 1 or two HTTP tests in there. That'd test out the socket server pretty well in a way that's easily debuggable (it also tests for memory leaks).

    404

    Interesting. If that's what Nodejs does then we should copy that - still seems a bit crazy though. I wonder how you're supposed to get the contents of a webpage that is sent without the standard return code?

    It's probably something to leave out of this PR though - we could file an issue for it.

    printing errors

    No problem... another issue on GitHub?

    MQTT library

    I'd be really against a C library for MQTT. It's just adding complexity and bulking out the firmware on other devices, where space is getting pretty tight now. If you're going to implement something resembling full MQTT it'll take a lot of space - most of which will be for the API, and very little of which will be actual code since the protocol is pretty simple.

    ... but if you're not trying to be full-featured, why not just make a cut-down JS version? Originally, I'd posted some example code that published data with MQTT and used just a few vars.

    Sure it wasn't full-featured, but it worked for what it was made for, and it'd definitely be fine on ESP8266.

    If you just wanted to publish (or just wanted to subscribe) you could probably get the code size down significantly.

About

Avatar for Gordon @Gordon started