def build_mqtt_topic(*args):
    """Join topic components with a '/' delimeters and encode as bytes

    The umqtt library expects topic to be byte encoded

    Arguments:
        *args {string} -- String to be added to topic

    Returns:
        [bytearray] -- byte encoded mqtt topic
    """
    topic = '/'.join(args)
    return topic.encode('utf-8')