Skip to content

reconnect_client

Force a client to reconnect (kick-sta).

Side effects:

  • Issues a deauthentication frame for mac on its current AP. The client immediately disconnects and most clients re-associate automatically within seconds.
  • The block-list is not modified; this is a transient nudge.
  • Mutates controller state. Use dry_run=True to preview the change without applying.
reconnect_client(mac="aa:bb:cc:00:00:01")
Parameter Type Required Default Description
mac string yes Client MAC address (e.g. "aa:bb:cc:00:00:01").
controller string no “default” Name of the UniFi controller to target. Defaults to "default".
dry_run boolean no false Preview the change without applying it. Returns the predicted change set.