Added example IoT script that can be either client or server