nn::uds::CTR::SetApplicationDataToBeacon Functionnn::Result SetApplicationDataToBeacon( const void * pData, size_t dataSize );
| Name | Description | |
|---|---|---|
| in | pData | Pointer to the data to set. |
| in | dataSize | Size of the data to set. Specify a value less than NET_DESC_APPDATA_SIZE_MAX. |
Result values listed below. | Value | Description |
|---|---|
ResultSuccess |
Process was successful. |
ResultNotInitialized |
The library is not initialized. Execute the nn::uds::Initialize function. |
| ResultInvalidState | Not in an executable state. Returned when executed in a state other than master. |
| ResultTooLarge | dataSize exceeds nn::uds::NET_DESC_APPDATA_SIZE_MAX. |
| ResultWirelessOff | Transitioned to wireless OFF mode. Re-initialization is required. |
| A value other than the above. | Failed for reasons other than those given above. |
Sets optional data in the beacon.
Sets any data up to a maximum of NET_DESC_APPDATA_SIZE_MAX bytes. Since it is not encrypted, note that it can be collected by any general device such as a computer. Other devices can obtain this data by calling Scan while they are connected as clients or spectators. Only the master can run this function.
CONFIDENTIAL