Skip to main content
Visitor II
July 28, 2023
Question

How to send data to Serial via APP_LOG function

  • July 28, 2023
  • 0 replies
  • 1047 views

Hello everyone, I'm working on the LORA pingpong example, and in the pingpong_process code, where I receive the data, I want to print it aswell. The current code that's running is this:

  if(RxBufferSize > 0){
  memcpy(receive_data, BufferRx, sizeof(BufferRx));
  HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_SET);
 
  for(int i=0; i<60; i++){
  APP_LOG(TS_ON, VLEVEL_L, "%d,\r", receive_data[i]);
  }
  APP_LOG(TS_ON, VLEVEL_L, "\n\r");
 
  RxBufferSize = 0;
  }
I've already managed to send it to serial once with the same code, but now it isn' working.
I'm doing the process to open a new console everytime, but I don't know the issue. Any ideas of what I could be doing wrong?
    This topic has been closed for replies.