Receive and send bytes with bluetooth

I want to send numbers but my application only receives them as bytes and not as text, which are parameters, how could I write them in a text bar and send them? I know how to get from the text box and send but not as bytes.

Hello Soren

What Bluetooth are you using? BT Classic or BLE?

1 Like

... also, are the numbers integers or floats?

1 Like

Hi, Chris. Thanks for your answer. I don´t really know :|. I'm using the HC-06 Bluetooth module to communicate with my STM32F446 microcontroller. And the numbers are integers. I need to send two bytes that will be tens and units of seconds.

HC-06 uses Bluetooth Classic. So, this should work:

blocks

(in your case only 2 TextBoxes)

1 Like

Thank you very much! I will try to implement your suggestion. If I solve it, I'll let you know :slight_smile:

Hi Chris! It really worked.
Thank you very much!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.