<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Device State on Rusty Eddy</title><link>https://rustyeddy.com/tags/device-state/</link><description>Recent content in Device State on Rusty Eddy</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 04 Jun 2026 17:40:13 -0700</lastBuildDate><atom:link href="https://rustyeddy.com/tags/device-state/index.xml" rel="self" type="application/rss+xml"/><item><title>Go timers to remove stale sensor stations</title><link>https://rustyeddy.com/notes/go-timers/</link><pubDate>Tue, 03 Nov 2020 00:00:00 +0000</pubDate><guid>https://rustyeddy.com/notes/go-timers/</guid><description>&lt;div class="alert alert-secondary border mb-4" role="note"&gt;
 Older project note. Kept for historical context; some implementation details may no longer reflect my current recommendations.
&lt;/div&gt;

&lt;p&gt;This article introduces Go timers as the mechanism the
&lt;a href="https://github.com/rustyeddy/iota"&gt;IoTa gateway&lt;/a&gt; uses to identify
&lt;em&gt;stale&lt;/em&gt; IoT stations. Modifying the Station with with a new &lt;em&gt;Go
timestamp&lt;/em&gt; field will allow IoTe to determine how long it has been
since the last time it has heard from a given Station.&lt;/p&gt;
&lt;p&gt;If the last &lt;em&gt;refresh&lt;/em&gt; time for a particular station has been longer
than the &lt;em&gt;timeout&lt;/em&gt; period the Station will be marked as &lt;em&gt;stale&lt;/em&gt;.&lt;/p&gt;</description></item></channel></rss>