IMHO the 'end' event would be a good addition. Right now it's somewhat painful and error prone to determine when a complete HTTP request has been received.
@allObjects: I would have to disagree with your assessment about what uC's are capable of. I totally agree that an architecture where pretty raw data from many nodes is aggregated makes a ton of sense. But while this is what I like to build myself as well, I also like to make the uC nodes that have actuators stand-alone 'cause there's nothing more frustrating than having your entire house/greenhouse/... being inoperable because the central server crashed or otherwise failed. Or not daring to upgrade the central server 'cause so much now depends on it.
What makes stand-alone http servers practical is the fact that all the UI can be shoved into browser-side JavaScript. I do that with esp-link and the constraints on the UI are pretty minimal at this point. The uC end up exchanging simple json or binary requests with a central uC and the browser alike. All that's needed is enough flash to hold the minified and compressed JS for the UI and be able to ship it to the browser. If you skip large libraries, such as jquery and bootstrap that's actually pretty easy to do.
The upshot of all this is that I'm gravitating towards uC nodes that work with a central node and that have a simple stand-alone UI.
Post a reply
Bold
Italics
Link
Image
List
Quote
code
Preview
Formatting Help
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
Tips:
Create headers by underlining text with ==== or ----
To *italicise* text put one asterisk each side of the word
To **bold** text put two asterisks each side of the word
Embed images by entering: ![](https://www.google.co.uk/images/srpr/logo4w.png) That's the hard one: exclamation, square brackets and then the URL to the image in brackets.
* Create lists by starting lines with asterisks
1. Create numbered lists by starting lines with a number and a dot
> Quote text by starting lines with >
Mention another user by @username
For syntax highlighting, surround the code block with three backticks:
```
Your code goes here
```
Just like Github, a blank line must precede a code block.
If you upload more than 5 files we will display all attachments as thumbnails.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
IMHO the 'end' event would be a good addition. Right now it's somewhat painful and error prone to determine when a complete HTTP request has been received.
@allObjects: I would have to disagree with your assessment about what uC's are capable of. I totally agree that an architecture where pretty raw data from many nodes is aggregated makes a ton of sense. But while this is what I like to build myself as well, I also like to make the uC nodes that have actuators stand-alone 'cause there's nothing more frustrating than having your entire house/greenhouse/... being inoperable because the central server crashed or otherwise failed. Or not daring to upgrade the central server 'cause so much now depends on it.
What makes stand-alone http servers practical is the fact that all the UI can be shoved into browser-side JavaScript. I do that with esp-link and the constraints on the UI are pretty minimal at this point. The uC end up exchanging simple json or binary requests with a central uC and the browser alike. All that's needed is enough flash to hold the minified and compressed JS for the UI and be able to ship it to the browser. If you skip large libraries, such as jquery and bootstrap that's actually pretty easy to do.
The upshot of all this is that I'm gravitating towards uC nodes that work with a central node and that have a simple stand-alone UI.