def query(capability, action, data, priority = 30, instance_id = nil)
      query_message = {
        id: SecureRandom.uuid,
        capability: capability,
        action: action,
        data: data,
        priority: priority,
        instanceId: []
      }
      query_message[:instanceId] = instance_id unless instance_id.nil?

      send_message('MSG_QUERY', query_message)
    end
def query(capability, action, data, priority = 30, instance_id = nil)
      query_message = {
        id: SecureRandom.uuid,
        capability: capability,
        action: action,
        data: data,
        priority: priority,
        instanceId: []
      }
      query_message[:instanceId] = instance_id unless instance_id.nil?

      send_message('MSG_QUERY', query_message)
    end
Sends a query to mycroft