Make sure paylaod format is known before trying to send commands.

Fixed #289.