The maximum size that can be received is 2047 bytes.
Syntax
int AccessoryDataReceive(
const unsigned char *string,
int len
);
Parameters
- buffer
-
[in] A pointer to the buffer that receives the data. Specify a buffer of 2048 bytes or more.
Return value
Returns the size of the received data and the reception error.
value | description |
---|---|
0 | No received data |
positive value | Received data size |
Negative value | Abnormal reception termination (including when the communication port is not open) |
Remarks
When data is received, the size of the received data is returned.
When sending data of 2048 bytes or more from the iOS side, send the maximum receivable size (2047 bytes) at a time, confirm that the data has been received by ACK, etc., and then send the next data.
It is not recommended to use it together with GetCom function .
Used when connecting by MFi is specified by Bluetooth SPP (COM3, COM5).
The port used is the port that was finally opened using the ComOpen function .
Used when the communication status by GetMfiAccessoryStatus function is already connected.
Please refer to Bluetooth MFi Overview for details on Bluetooth MFi communication.
When sending data of 2048 bytes or more from the iOS side, send the maximum receivable size (2047 bytes) at a time, confirm that the data has been received by ACK, etc., and then send the next data.
It is not recommended to use it together with GetCom function .
Used when connecting by MFi is specified by Bluetooth SPP (COM3, COM5).
The port used is the port that was finally opened using the ComOpen function .
Used when the communication status by GetMfiAccessoryStatus function is already connected.
Please refer to Bluetooth MFi Overview for details on Bluetooth MFi communication.
Requirements
Header file:
lib.h : System E6.0 or later.Library file:
libSTARTUPOPH5000.a : System E6.0 or later.
Related matters
Last updated: 2022/01/26