This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE MESH stack 3.0 - message send on timer issue

Hi,

i'm using BLE MESH 3.0 Light Switch Example code. i want to send Light on-Off  command every 2 second Timer base instead of Button press.

i got an error below.

Parents
  • Hello Bjorn Kvaale

    Thanks But i'm using BLE MESH SDK 3.0 .I want to send Light On/Off Command evrny 10Second.

    If i print String every 10 second and command send on Button pressed it's working well . but i send command every 10 second code is stuck.

    Got an above Error. Please reply me ASAP.

    Thanks,

    Nikunj

  • Hi Nikunj,

    First off, you should figure out why the app error weak is called. Which error check is leading to this app_error_weak call? 

    It seems you have successfully initialized the softdevice before you intialized the mesh stack (see documentation).

    Have you taken a look at the example I provided in my first comment? Have you tried just updating that example from mesh sdk v2.1.1 to mesh sdk v3? Or just taking the standard light switch server example in mesh sdk v3 & adding the code that Simon added (i.e. timeout_config() function & adding app_timer_init() to the initialize function)?

Reply
  • Hi Nikunj,

    First off, you should figure out why the app error weak is called. Which error check is leading to this app_error_weak call? 

    It seems you have successfully initialized the softdevice before you intialized the mesh stack (see documentation).

    Have you taken a look at the example I provided in my first comment? Have you tried just updating that example from mesh sdk v2.1.1 to mesh sdk v3? Or just taking the standard light switch server example in mesh sdk v3 & adding the code that Simon added (i.e. timeout_config() function & adding app_timer_init() to the initialize function)?

Children