Connected Event
Fired immediately after a connection to a remote device completes (or fails).
Syntax
type TConnectedEvent = procedure ( Sender: TObject; StatusCode: Integer; const Description: String ) of Object;
property OnConnected: TConnectedEvent read FOnConnected write FOnConnected;
Remarks
If the connection is made successfully, StatusCode is 0 and Description is "OK".
If the connection fails, StatusCode has the error code returned by the Bluetooth stack. Description contains a description of this code.
Refer to the Connect method for more information.