Gravar-mail: Towards a software defined multi-domain architecture for the internet of things