cancel
Showing results for 
Search instead for 
Did you mean: 

How to send data to Serial via APP_LOG function

FPicc.1
Senior

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?
0 REPLIES 0