Lightweight Platform for the Network of Things