2 WME Application Service Components
The Application Service MCC components, except Custom Protocol App Service and Bluetooth® Low Energy Config Service, improve existing profile components by replicating their Graphical User Interface (GUI) and incorporating several advanced features. These components streamline the development process by offering individual control over application code generation for each profile, reducing the number of steps required for configuration, and enabling the automatic activation and connection of underlying profile and service components. This approach allows for more granular control and flexibility in project development. Key features include an “Enable App Code Generation” switch, automatic activation and connection of underlying components, and automatic stack configuration.
Automatic Activation and Connection Dependent Components
To add Service Components to the project graph, navigate to Libraries>Harmony>Wireless>Services>BLE>[App Service] and click on the plus symbol. When the user adds the component to the project graph, the dependent components will also be automatically activated, with a request for auto-connection for those components that require an attachment connection. The following figure illustrates the available App Service components within the device resources and project graph for the Alert Notification App Service upon activation. It demonstrates that all dependent components are activated and automatically connected.
Enable App Code Generation
This feature introduces an Enable/Disable switch that allows users to control the generation of application code for a specific profile. When users enable application code generation along with the BLE Config App Service component, the necessary application code functions for that profile will be generated. These generated application-specific functions will be included in both the generic callback file and the profile-specific callback file.
Service Configuration
The Application Service MCC components, with the exception of the Custom Protocol App Service and BLE Config Service, replicate it’s profile component's configuration GUI within the service configuration. Upon activation of these components, the replicated symbols in the profile configuration GUI will be set to read-only as illustrated in the following figure.
Automatic Stack Configuration
Upon activating the profile app service, the component stack will be automatically configured to meet the application's specific requirements based on the selected service configuration. For example, refer to the following figure to observe the automatic configuration performed by the Alert Notification Application Service. Users can view the auto-configured items highlighted in blue within the GUI.