added mqtt 3.1.1 sessionPresent flag to CONNACK message