webbleMQ
This is a minifyed version of Ollie Phillips sources. Just what I needed to start my own project BLE2MQTT which borrows massively from his codebase.
Web Bluetooth relay for devices supporting Nordic UART service, Circuitpython in particular
Designed primarily for use with Circuitpython. Each device has own publish and subscribe topic.
Note MQTT uses my private MQTT broker - mqtt.fadenstrahl.de and the data is public. If you fork the repo, please change the broker to one of your choosing and do not use mine.
Authentication is necessary if you run this on a https server like github.io
Enable web-bluetooth in google chrome
Read this article for getting infos on how to enable web-bluetooth in google chrome or simply open chrome://flags/#enable-experimental-web-platform-features
and choose Enabled.
Mosquitto setup
This is the perfect tutorial how to setup mosquitto with wss and certbot (Let's Encrypt)
Roadmap
- Write a Circuitpython-module for MQTT over BLE.
- switch to Eclipse Paho Javascript client because mosquitto.js is deprecated.
Contributions
Are welcome!
License
MIT