I believe you have added the print statement after the following check done in the mesh_app_init(). If the device is not provisioned, then the app won't execute beyond this "if" condition. After provisioning, you will be able to see the expected prints on the PUART trace. Please try it once.
Did you configure the LED correctly? I can see that you have used some number in the config parameter of wiced_hal_gpio_configure_pin().
void wiced_hal_gpio_configure_pin(BYTE pin,UINT16 config, BYTE outputVal);
Config parameter should be set as below. (Please check wiced_hal_gpio.h)
For example, to enable interrupts for all edges, with a pull-down, you could set config parameter to:
GPIO_EDGE_TRIGGER | GPIO_EDGE_TRIGGER_BOTH | GPIO_INTERRUPT_ENABLE_MASK | GPIO_PULL_DOWN_MASK
Thanks for your response, I put the print statement only after that If condition, After it gets provisioned only i am printing the statement but still in the putty window i am not getting the desired print value. There is no issue with LED, it works fine, Instead of giving names like Outputval as high or low i am giving as 1 or 0, That works well for me. But the problem is with the print statement. I am sharing you the part of the code where i am intend to print, Please check and let me know the problem.
Thanks in advance.
ALS.c.zip 2.1 K
i just added below code in the sensor_temperature.c and, I am getting prints as expected (and LED is ON). Please find the attached code and logs.
if (mesh_sensor_sent_value < 500)
I believe, other modification done to your code (Eg: max44009_init) is causing some problem. Could you please comment out the below lines from your code and try?
max44009_init(&max44009_usr_set, max44009IntProc, NULL);
mesh_sensor_current_light = max44009_read_ambient_light();
Since, you are not getting print for "WICED_BT_TRACE("PRINTING init done ");", I doubt the device goes to some bad state due to the max44009_init(). Could you please confirm that the device and the application is functional, after provisioning?