nn::cec::CTR::GetCecInfoBuffer Function

Syntax

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

Arguments

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
ResultSuccess 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 a receipt notification using GetCecRecvEventHandle, you can use this function to, for example, 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 only gets the information associated with a message at the time of receipt. This information does not reflect any subsequent changes that happen in the inbox. 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