Press "Enter" to skip to content

Posts published in “Day: April 22, 2020

WireGuard VPN from Home Assistant Easy Setup (Video How-To)

WireGuard is an extremely simple yet fast and modern VPN. It aims to be faster, simpler and more useful than IPsec. It also intends to be considerably more performant than OpenVPN. And I will show you how to install WireGuard using Home Assistan...

How to reduce the cellular network data usage of an IoT device?

We're working on an IoT device connected through a cellular network (can't change that). We are using MQTT as the communication protocol. The device reports data on a regular interval (say every 10 minutes), but also needs to react from real-time requests from the user (via the cellular network). Hence, we need to keep the TCP connection alive in both directions.

We are using a TCP keepalive value of 30 seconds for the MQTT connection, however, this eats through our bandwidth. Each keepalive packet sequence uses around 270 bytes of data (up + down), that's around 740kB per day. Are there other methods to keep the connection alive such that a user can remotely activate a feature on our device? Reducing the data consumption cost is our primary concern, power is not an issue.

submitted by /u/psiphi75
[link] [comments]