Hi~~ Nordic Team!!
Our project is to read data from sensors and transmit it to a smartphone.
So, we are configuring it using Mesh chat, and like the Meshchat example, the chat program using Putty operates normally and random data is also transmitted.
However, by configuring a 200ms Timer,
char Test_buf[] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x00};
char *Dview = &Test_buf[0];
bt_mesh_chat_cli_private_message_send(&chat, addr, Dview);
void LED_sample_event(struct k_timer *timer_id){ if(gCnt_LED == 0) { dk_set_led(DVIEW_TEST_LED, 0); gCnt_LED = 1; } else { dk_set_led(DVIEW_TEST_LED, 1); gCnt_LED = 0; } if(g_MeshChat == 1) { Dview_cmd_private_message(); } }
char Test_buf[] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x00}; char *Dview = &Test_buf[0]; int Dview_cmd_private_message(void) { uint16_t addr; int err; addr = 0x0001; // shell_print(shell, "<KJH>: *0x%04X* %s", addr, Dview); err = bt_mesh_chat_cli_private_message_send(&chat, addr, Dview); if (err) { LOG_WRN("Failed to publish message Dview 0: %d", err); } return 0; }
I tried to send using the function, but the data is not sent and as shown below:
<err> fatal_error: Resetting system
This is happening.
If you have any suggestions or need to resolve this issue, please advise.