I followed the Bluetooth tutorial but stucked at section "Enabling and Disabling Bluetooth".
The codes are:
...... app_control_set_operation(service, "APP_CONTROL_OPERATION_SETTING_BT_ENABLE"); ret = app_control_send_launch_request(service, NULL, NULL); app_control_destroy(service); if (ret == APP_CONTROL_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "Succeeded to Bluetooth On/Off app!\n"); return 0; } else { dlog_print(DLOG_INFO, LOG_TAG, "Failed to relaunch Bluetooth On/Off app!\n"); return -1; }
but I got the value of ret is -17825759, which is APP_CONTROL_ERROR_APP_NOT_FOUND.
And I do not find definition in app_control.h for APP_CONTROL_OPERATION_SETTING_BT_ENABLE, and above codes even use it directly as a string.
Apparently, the implementation has been changed, but the tutorial are not updated.
Who know how to Enabling and Disabling Bluetooth now?