nn::cec::CTR::GetCecInfoBuffer Function

Syntax

nn::Result GetCecInfoBuffer(
     u32 cecTitleId,
     u8 pCecInfoBuffer[],
     size_t size
);

Parameters

Name Description
in cecTitleId Specifies the StreetPass ID.
out pCecInfoBuffer[] Specifies the buffer to receive the CecNotificationData.
in size Specifies the buffer size.

Return Values

nn::Result

Value Description
Result::IsSuccess Process succeeded.
ResultNoData There was no data that could be obtained.

Description

Gets information about a message received in the previous communication.

After you receive notification of a communication event using GetCecRecvEventHandle, you can use this function to check whether there is data addressed to the foreground application.
This function can get information only about messages received in the immediately previous round of communication. It cannot get any information about data received earlier. Also, this function can only get information about the communication event that occurred and does not reflect any subsequent changes that happen to the boxes (such as the deletion of inbox messages).
This function can only get information about one message, even when multiple messages are received as a group.(The maximum CecNotificationData.num value is 1.)
In addition, the obtained data does not include information about received data that was discarded because it was duplicated.
The CecNotificationData count value increments every time StreetPass data is exchanged. You can check for changes in this value to determine whether an exchange has occurred.


CONFIDENTIAL