[fix] separated mqtt related parts of structures

* fixes the compilation issues