mqtt working, defining message formats