sensor-listener: fix mask of header, print message type for debugging
sensor-listener: do not rely on fixed buffer size and assume sql will fit, fix segfault when no config passed