This is bluetooth code of me!
{
wiced_result_t wiced_result = WICED_BT_SUCCESS;
/* Configure platform specific settings for the BT device */
cybt_platform_config_init(&cybsp_bt_platform_cfg);
/* Register call back and configuration with stack */
wiced_result = wiced_bt_stack_init (app_bt_management_callback, &wiced_bt_cfg_settings);
/* Check if stack initialization was successful */
if( WICED_BT_SUCCESS == wiced_result)
{
printf("Bluetooth Stack Initialization Successful \n");
}
else
{
printf("Bluetooth Stack Initialization failed !! \n");
}
for(;;)
{
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
if(char_notification_enabled == true)
{
/* Sample input voltage at channel 0 */
adc_single_channel_process();
adc_send_notification();
}
if(humidity_notification_enabled == true)
{
humidity_send_notification();
printf("\r\nHumidity = %.2f\r\n",DHT_read.humidity);
}
if(temperature_notification_enabled == true)
{
temperature_send_notification();
printf("\r\nTemperature = %.2f\r\n",DHT_read.temperature);
}
vTaskDelay(200);
}
}