Hi guys,
I am developing the program for Mesh SDK where I will need to use different functionalities from different C files that I defined, into main.c. I have already defined header files (with all necessary functions and variables definitions) and include them in the appropriate C files that I need to use. In my code, I want to send the "stupid" data from LPN to server node using simple_message_model. Everything works correctly when my LPN (sender) node is connected via USB, but when I connect my device to an external power source, the message on the server-side is not visible anymore. Can you please suggest me how to fix this issue?
Server (receiver) side:
<t: 0>, main.c, 164, ----- BLE Mesh Light Switch Server Demo ----- <t: 13530>, main.c, 132, Initializing and adding models <t: 13532>, simple_message_server.c, 140, adding access_model_subscription_list_alloc simple model<t: 13536>, main.c, 79, Simple Message Model Handle: 2 <t: 13587>, main.c, 113, Node Address: 0x0002 <t: 13590>, mesh_app_utils.c, 67, Device UUID : A18114C9-AE95-4DA5-A5DD-87719797DF08 <t: 13607>, main.c, 254, ----- Node is already Provisioned ----- <t: 317337>, main.c, 65, Received message: 25, Received length: 2 <t: 320607>, main.c, 65, Received message: 25, Received length: 2 <t: 415613>, main.c, 65, Received message: 25, Received length: 2 <t: 419171>, main.c, 65, Received message: 25, Received length: 2 <t: 514102>, main.c, 65, Received message: 25, Received length: 2 <t: 516613>, main.c, 65, Received message: 25, Received length: 2
LPN (sender) side:
<t: 0>, application.c, 324, ----- BLE Mesh LPN Demo ----- S<t: 10700>, application.c, 285, Initializing and adding models <t: 10703>, simple_message_client.c, 191, adding access_model_subscription_list_alloc simple model <t: 10751>, application.c, 81, Node Address: 0x0004 <t: 10754>, mesh_app_utils.c, 67, Device UUID : BBEF551D-17C5-4345-9257-E3202A200AEC Node is provisioned! <t: 156745>, application.c, 132, Sending Simple msg: 25 of size: 2 <t: 255049>, application.c, 132, Sending Simple msg: 25 of size: 2 <t: 353353>, application.c, 132, Sending Simple msg: 25 of size: 2 <t: 451657>, application.c, 132, Sending Simple msg: 25 of size: 2 <t: 549961>, application.c, 132, Sending Simple msg: 25 of size: 2 <t: 648265>, application.c, 132, Sending Simple msg: 25 of size: 2
These are outputs when my lpn node is connected via USB and as you can see everything is okay, but when I try to disconnect it and connect to PPK2 or another external source, the received message is not visible anymore. Also, in this lpn output window seems that only application.c file is running, instead of main one.
Thanks a lot in advance.
Br,
Adnan.