use cases:
(1) Iām helping Kelvin with his sensor-logger project which started out as a logger for sensors in a mobile but since has become a more generalized logging tool which can live-push via MQTT and log advertisement-based BLE sensors
adding external sensors was always a theme for me, and Kelvin will add what we called āMQTT sensorsā - basically a MQTT subscription
that begs the question āwhere is the brokerā - if thereās net connectivity, not an issue
for instance, to integrate OMG one could have publish it to some cloud-based broker, and have sensor-logger subscribe to topics there - done
that doesnt work if no net connectivity, and it adds quite some roundtrip time ontop
so my idea was to see if a broker can be integrated into OMG, have OMG Wifi-connect to the mobileās hotspot, and sensor-logger subscribe to topics on the ālocalā broker in OMG
(2) Iām working on an instrument which could be either an embedded controller with display, or a PWA say on Android - in the first case custom sensors are easy, in the second case not so much - the crippled BLE browser API stands in the way
using say paho mqttjs is an option, again begginng the question āwhereās the brokerā if no net connectivity; a local broker in OMG would fix that, assuming the custom sensors are made to work with OMG (which either is the case or should be straightforward)
Iāve played with (2) and paho mqttjs needs MQTT-in-websockets which PicoMQTT doesnt support. I tried a Websockets-to-TCP proxy with ArduinoWebsockets which Iām still struggling with (works with paho mqtt python/ws but doesnt with paho mqtt js - some handshaking issue during setup)
thatās the backdrop for the idea
Michael
PicoMQTT vs TinyMQTT: same results here. I also tried EmbeddedMQTTBroker - not quite up to the task.
Unfortunately PicoMQTT is GPL3
meanwhile, I have made some progress on the MQTT-over-websockets support for PicoMQTT
see issue 28 of the github PicoMQTT repo
-Michael
ps: unsure why the original post was tagged as spam, reposting without links