Let $E$ be a smooth vector bundle on a smooth manifold $M$. If $E$ is flat, there is a connection $\nabla$ which is a differential which we can use to define the de Rham cohomology of $E$.
If $E$ is a non-flat bundle on $M$, is there any meaningful way to construct a de Rham cohomology of $E$?