BTSpy is a trace utility available in Modustoolbox that can be used in the BTSDK platforms to view protocol and generic trace messages from the embedded device. Here, I will show you the quick steps to enable the BTSpy traces in your application which will help you while debugging your application.
Step 1: Include header files
Step 2: Variable definitions
In this step, we define the required macros, configure the transport configurations, etc.
Step 3: Initialize and Register callbacks
In this step, we initialize transport configurations, buffer pool and register a callback function to send the traces over transport.
Step 4: View Traces
Program the application to your platform and BTSpy & ClientControl tools available in the IDE/SDK. BTSpy listens on the UDP port 9876 and can receive a specially formatted message from ClientControl. Sample traces will look like as below.
FYI. Listed few useful links
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.