Gravar-mail: Smart gateways for IOT-Factory integration: trends and use case