• You want to use a service worker on your phone to directly contact an Espruino?

    To be honest I think you'd be out of luck anyway - even if you could get an HTTPS server on Espruino, the Service worker's request would most likely fail because the HTTPS certificate would have to be issued by a proper certificate authority (it's why even serving https off your own PC can be tricky).

    The best be would be to find some web service that the Espruino could contact, and that your service worker could then query via HTTPS. Dweet is a nice easy one: https://www.espruino.com/IoT+Services#dw­eet-io

    If you want to ensure it's totally secure then I think they have a paid service, or you could set up some kind of service on your own server I guess - you could maybe even use Amazon web services.

About

Avatar for Gordon @Gordon started