Reconfiguration of environmental data compression parameters through cognitive IoT technologies