I’d love an HTTP API that can be used with POST/PUT.
Controllers like Knocki, Flic, can send HTTP POST/PUT requests over WiFi, but, cannot ‘upgrade’ to websockets.
I’ve found a WiFi remote control with a reprogrammable microcontroller, and have it boot, join WiFi, then attempt websockets - but, I’ve found:
- PB only allows one websockets client at a time. So the situation gets confused if the remote AND a web browser are in use, or, maybe - I’m unclear - if the remote doesn’t terminate the websockets connection ‘properly’
- It takes extra time to bring up the WiFi, then establish the websockets upgrade. Here actually would be useful a Bluetooth Low Energy interface, or, ESP-NOW, something that allows a controller to boot and send a command quickly, without a few seconds delay joining a WiFi network
The location where my PB often are, has no ‘servers’, so no Firestorm. I guess I could install and run a Pi Zero, just for Firestorm, but this seems a shame (to add extra components to worry about the reliability of, robustness against power outages, etc.) when the esp32 in the PB is already doing websockets API.
My request is both - since Flic (etc.) type controllers generally support simple HTTP, but my own custom controllers, I’d like BLE for even faster reaction-time for battery powered devices which are normally sleeping.
Thank you!