Mesh v5.0.0 sensor periodic measurement

Hello,

i'm using nRF5 SDK 17.0.2and  nRF5 SDK for Mesh v5.0.0 using the examples sensor client and server.

I am trying to create a function that makes the client client send mesure request periodicaly. (every 0.5 sec i want a measured value). I tried simulating button press to trigger the event in software but i got errors. I know it isn't good idea anyway.

How to trigger that event without any erros from function outside event_handler ? 

Related