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

[Merge Project] Making twi_sensor example work with Mesh SDK proxy_client

Hi all,

I'm working on a project which will automatically send data from LM75 sensor through mesh proxy_client to proxy_server. So, I did merge two examples twi_sensor and proxy_client. Until now I can make the twi_sensor's main.c worked in the proxy_client project. But I don't know how to automatically send data through it. I tried to keep the loop(twi_sensor's main.c) and publish the value. It can send the Celsius degrees(showed on my Jlink RTT Viewer) while provisioning. But after provisoned. It stopped working.

I know that keep the main loop is wrong but I don't know how to write a new event handler because twi_sensor example already has one. Could you show me the way. Thanks!

This is my main.c after merge. The provisioning progress happened normally.



This is my Debug Terminal

Related