|
SmartSnippets DA1459x SDK
|
This application is a sample implementation for Apple Notification Center Service (ANCS) client. It supports all the features of the Notification Consumer (NC) role provided by this service.
The project is located in the projects/dk_apps/ble_profiles/ancs folder.
To install the project follow the General Installation and Debugging Procedure.
Upon connection the iOS device sends all pending notifications. By default, all of them are dropped by the application and only notifications generated after the connection are processed. To also process the notification events that were generated before the connection, set the following configuration macro to 0.
By default, the application will only print incoming notifications once all the data is received (attributes, application). Verbose logging will enable more printouts for intermediate steps as they are being executed, i.e. received notification information, reading attributes etc.
This configures the maximum number of received characters for the notification attributes "title" and "message". It affects what is displayed as notification content.
K1 button is used to trigger performing negative action on most recently received notification. See section 'Manual testing' for details.
Default value is suitable when running on ProDK rev. B and C for DA1468x or ProDK rev. A for DA1459x, DA1469x and GPIO's are defined during preprocessing.
Requests (either application or notification attributes) which take too long will be cancelled automatically after specified time.
Default value is 10 seconds.
A short delay is used before starting to browse for ANCS.
Default value is 1 second.
The application runs as Notification Consumer, thus it uses LE Peripheral role when started and starts advertising. Advertising data contains Service Solicitation UUID for ANCS as defined by specification (7905f431-b5ce-4e99-a40f-4b1e122d00d0) and device name (Renesas ANCS Demo) is located in scan response.
Debug logs are output using serial port available when plafrom is connected to PC using USB2 connector (e.g. /dev/ttyUSB0).
Notification is printed in following form:
All data is printed as received from iOS device, no additional processing is applied.
If verbose logging is enabled, some additional information will be also printed like "raw" events received from iOS device.
MTU values, connection parameters and device name are hardcoded at the moment, they can only be modified by making changes in source code.
1.8.16