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 only get information about one message, even when multiple grouped messages are received.
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