Skip to main content
Visitor II
January 25, 2023
Question

HAL_UART_Transmit() and HAL_UART_Receive() API

  • January 25, 2023
  • 1 reply
  • 887 views

I am using Nucleo board and Tera term for serial monitor

I want to do simple addition program

I want to take two values from serial monitor by typing (number + Enter ) and print back its addition

Expect output on Serial monitor:

enter value A : 5

enter value B : 6

Sum is : 11

Give me a code example

    This topic has been closed for replies.

    1 reply

    Visitor II
    January 26, 2023

    I would suggest to browse SIF.C in this project

    It uses Android's bluetooth electronics and HC-05 UART to Bluetooth to send/receive/control/widget represent data in the STM32. May not be a shortcut to your needs, yet...