Hacker News new | ask | show | jobs
by bjpirt 2709 days ago
From personal experience: using WebSockets for realtime communication with a microcontroller works really well. I've put together a number of products using ESP8266 to do this and serving out the HTML/JS from an embedded web server. Works particularly well for streaming out the state of sensors on the device.

The main issue I had was that only HTTP was well supported on the Arduino/ESP8266 platform and as we all know that's fallen out of favour. Unfortunately, it also limits what you can do on resource constrained microcontrollers. Having HTTPS in this library opens up the ability to build an SPA which was something I'd always wanted to do.

I don't see any mention of ESP8266 on their site but hopefully, as probably the most widely available IP enabled microcontroller, it will be supported too. Time to do some more digging into getting it running.

edit: I obviously didn't look closely enough - there's recently been added support for ESP8266 - happy days!

1 comments

I highly recommend pairing an esp8266 with a ATECC508A crypto chip for serious tls stuff. It all works nicely with MongooseOS.

Edit: Looks like the MongooseOS team has even blogged about it (a few different times). Here is an example: https://mongoose-os.com/blog/mongoose-esp8266-atecc508-aws/