Happy Bubbles for Home Automation

If you are interested in using beacons in home automation, it’s worth looking at Happy Bubbles. It’s hardware and a server that allows you to automate things happening in response to beacons being detected.

The concept is very similar to using a gateway with our generic beacons. In fact, the Happy Bubble ethos is similar to our own:

“Happy Bubbles is a different kind of IoT company. The happiest bubbles are the ones you create for yourself, not ones that others force you into. We believe that the products you purchase are your own and should be accountable to you, not the company that made them. … They are designed to run on your own network and not rely on other people’s ‘cloud’ services unless you want them to. Know exactly what you’re getting and what it’s doing on your network.”

MQTT vs HTTP for Bluetooth WiFi Gateways?

Our Bluetooth WiFi gateways offer MQTT and HTTP for sending data to servers/cloud services. We are often asked which should be used. HTTP is what’s used by your web browser to fetch and send data to web servers. In very high level terms, MQTT accomplishes a similar thing but is better optimised for mobile devices and the Internet of Things.

HTTP is very ‘chatty’ which means it’s more complex, code wise, to implement at the sending end and wastes a lot of data and processing power getting information from sender to receiver. You can think of HTTP as wrapping the data within lots other data that gets sent backwards and forwards. MQ Telemetry Transport Protocol (MQTT) came out of IBM, is now an ISO standard and uses lightweight publish/subscribe messaging. It requires a smaller code footprint at the sender and uses less network bandwidth.

Bluetooth WiFi gateways are powered via USB and have reasonably powerful microcontrollers so MQTT’s efficient processing doesn’t matter that much. The more efficient processing is more applicable to apps running on mobile devices. For example, Facebook uses MQTT which saves battery life.

However, being lightweight, MQTT offers faster response times and lower data use than HTTP that, while not necessarily being of much of an advantantage for the BLE WiFi gateway, benefits the communications medium and server side. The communications medium, that can sometimes be cellular or be data constrained, uses (and possibly bills) less data. More crucially, the server can process more requests in less time. MQTT tends to be better when connectivity is intermittent, bandwidth is at a premium and throughput is critical.

In summary, MQTT has lower latency and is more efficient. Whether these are required advantages depends on your actual project. If you need more help, consider our development services.