首先由几点要求:
- The application must use the Device Manager. If the application does not use the Device Manager yet, you must update the application. See BLE Device Manager for more information.
- You must add DFU related files to the BLE application project. See Including DFU files in application.
- You must implement a function that executes application-specific operations to ensure a graceful shutdown of the application. SeeImplementing graceful shutdown.
- The application must correctly set up the BLE services. See Setting up the BLE services.
- The application must propagate SoftDevice BLE events to the BLE DFU Service. See Propagating BLE stack events.
之后,你就可以通过向DFU Service Control Point写入"DFU Start"来启动DFU功能。
没有评论:
发表评论