IoT reference architectures