fix mqtt config settings, function declaration