System.Bluetooth.TBluetoothSocket.ReceiveData
Delphi
function ReceiveData: TBytes; overload; inline;
function ReceiveData(ATimeout: Cardinal): TBytes; overload;
C++
System::DynamicArray<System::Byte> __fastcall ReceiveData()/* overload */;
System::DynamicArray<System::Byte> __fastcall ReceiveData(unsigned ATimeout)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothSocket |
Description
Reads an array of bytes sent by the remote device.
ATimeout
is the maximum time to wait for data. If there is no data after the time runs out, then the return value (TBytes
) is empty.