There are various ways to architect IoT deployment, with some enterprises using sensor hubs or IoT gateway devices to collect data from multiple sensors and forward it to an upstream system. These gateway devices can be 'smart' and perform local analytics and data processing before sending the data on. The author built a Pine-64-based IoT smart gateway device to demonstrate this concept. The Pine-64 is chosen over Raspberry Pi due to its lower cost, similar processor, more powerful GPU, and built-in WiFi. The device can store data on a microSD card, with a maximum size of 256GB. To get the TICK Stack up and running on the Pine-64, the author used the Xenial image, which is an official Pine-64 image based on Ubuntu. InfluxDB was installed along with other required packages. The device can perform local analytics, handle some local alerting, and downsample data before sending it upstream. Downsampling can be achieved using Kapacitor, allowing for efficient storage and bandwidth management. The author demonstrated the ability to forward highly-granular millisecond data on the gateway device while sending less-granular 1-minute data to an upstream InfluxDB instance for further analysis and processing. This approach enables timely, accurate, and actionable IoT data, with the ability to chain data storage across regional instances for aggregate analysis.