Skip to main content
Graduate
May 15, 2023
Question

SensorTile.box: Send data/text over Bluetooth to be displayed on PC.

  • May 15, 2023
  • 0 replies
  • 864 views

Hi, I have created a machine learning model using STM32Cube IDE and would like to print out the results of the model on the PC using Bluetooth. I am using the SenorTile.box (STEVAL-MKSBOX1V1) with the SPBTLE-1S Bluetooth module.

I am currently printing out my results over USB, with the device being shown as a COM port in the PuTTY program. The code I use for this is:

#define BUFSIZE 256
char	SendBuffer[BUFSIZE];
 
snprintf(SendBuffer,BUFSIZE,"Class: %d \r\n", ClassValue);
CDC_Transmit_FS(SendBuffer,strlen(SendBuffer));

Now I wonder if there is a way to do this, but by using Bluetooth instead of USB. Thank you in advance.

    This topic has been closed for replies.