Skip to main content

Particle Connectivity Agent Library

Particle's default connectivity agent is great for rapid benchtop protos, though becomes problematic for scenarios which require long-term connectivity and non-blocking operation.
  • Spotty WiFi will cause the agent to eventually go offline indefinitely; requiring a power cycle
  • Internal clock is not automatically synchronized and drifts considerably over the course of a few days
  • Upon boot, the Setup() will not be invoked until WiFi connectivity is established - preventing initialization of IO
  • Cloud connection related functions will block execution of the application

Due to these issues, I built my own class to manage connectivity with the Particle Cloud. Basic usage is simple: set the system mode to manual, instantiate the class, and call Process() during loops.

Check it out on GitHub - https://github.com/TKBrown/Particle-Connectivity-Agent

Install via Particle CLI `particle library install Particle-Connectivity-Agent`

Comments

Popular posts from this blog

GE Profile Microwave Oven - 3D Printed Turntable Wheel Repair

With the COVID-19 lockdowns in effect we're tapping our frozen reserves of past harvests and prepared foods more frequently. The microwave has certainly seen an uptick in meal prep. Unfortunately one of the turntable wheels on our GE Profile dislocated and became damaged beyond use which prevents rotation while cooking -  game over for achieving reasonable cooking performance. Lengthy shipping delays and complete shutdown of business is the norm at the moment so I decided to 3D print a replacement. With such a simplistic part, reverse engineering one of the working wheels took only a few minutes as did whipping up a model in SolidWorks. Print took ~15 minutes then snapped on and rotated like an OEM part. For those in a similar situation, I'm releasing the STL file for fabrication on your own 3D printer - hopefully there's someone out there who's life got a tad easier during these crazy times. https://github.com/TKBrown/GE-Profile-Turntable-Wheel UPDATE: Over time th

Building Custom Beeswax Molds with 3D Printed PETG and Silicone Resin

Through my beekeeping operation I accumulate dozens of spent frames from which I salvage beeswax. Until recently I created candles as a means of storage for refined wax, though it reached a point where candle creation exceeded consumption. I decided to cast the refined wax into blocks for long term storage and began the process of creating molds. I pursued a number of concepts before settling on one which fit my needs; this post is will hopefully save others a fair amount of time as little information is available on the web for fabricating custom beeswax molds. Guidelines for the project: Use materials on-hand: 3D Printed PLA or PETG Silicone Resin Must be capable of reliably imprinting fine detail; minor defects are acceptable so long as it fits within the definition of "rustic" Technique must be adaptable across a range of sizes: 1/4 Lb to 5 Lbs Preheating of molds prior to casting not required Mold release agent (silicon spray) not required PETG Mo

Automated Chicken Coop V4

I've kept chickens for ~7 years as of this writing and employed automation for the majority of those years. Chickens are great fun and one of the easiest animals to farm; the addition of automation eliminates some of the more mundane chores. I subscribe to a pasturing  approach where chickens are given unrestricted access to my surrounding woodlands, meadows, and wetlands - there are a number of benefits to this system of management that I won't dive into here. Aside from fire mitigation, the property remains in a fairly wild and unaltered state and all active management centers around the coop - this is in contrast to other systems where birds are confined to cages, coops, and optionally attached runs in accordance with metrics on minimum cubic feet per bird. Motivation Over the last few months I've been mulling over a new design for my chicken coop automation system. It's been nearly 2 years since the last refresh and few new dynamics are in play for the 4th version: