This document discusses devices, gateways, and their roles. A device is a hardware unit that can sense its environment and perform tasks using a microcontroller, memory, I/O capabilities and networking interfaces. Devices can be basic, providing only sensor readings and actuation, or advanced, hosting applications and providing user interfaces. Gateways translate between network layers, manage data from multiple devices, run local applications, and facilitate device management between devices and servers.