iblrig.net.update_alyx_token

iblrig.net.update_alyx_token(data, _, alyx=None, one=None)[source]

Callback to update instance with Alyx token.

Parameters:
  • data ((str, dict)) – Tuple containing the Alyx database URL and token dict.

  • addr ((str, int)) – The address of the remote host that sent the Alyx data (unused).

  • alyx (one.webclient.AlyxClient) – An optional instance of Alyx to update with the token.

  • one.api.OneAlyx – An optional instance of ONE to update with the token.

Returns:

If True, the provided alyx or one instance was successfully updated with the token.

Return type:

bool