def topic_with_device_name(device_name, topic):
    """Creates fully-formed topic name from device_name (string) and topic (string)"""
    if device_name:
        topic = device_name + "/" + topic
    return topic