Timers

Using Go timers for MQTT testing

May 2, 2022

Go timers along with a select can be used to simplify testing both read and write side of communication protocols. In this article you will learn to combine a Go timer along with a select statement to test both sides with a single test case.

Go timers to remove stale sensor stations

November 3, 2020

Older IoT gateway note showing how Go timers can track stale sensor stations, expire inactive devices, and keep gateway state from drifting.