- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Currently, I use something like this: WPRINT_APP_INFO( ( "wiced_bt_ble_set_advertisement_data %d\n", result ) );
that would output the following to the terminal: "wiced_bt_ble_set_advertisement_data 0"
Then I have to figure out what the value 0 represents in the enum where it's declared.
Is there a function that could convert the numerical value back to the string its equal to?
I would like to see something like this: "wiced_bt_ble_set_advertisement_data WICED_SUCCESS"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
wiced_bt_ble_set_advertisement_data will be returning the decimal or Hexadecimal value to indicate the results. See wiced_result.h.
It is not recommend to modify this header file, because it may break other applications.
I would suggest you to create another custom list for your application which will return the string instead of the value of the results.
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
wiced_bt_ble_set_advertisement_data will be returning the decimal or Hexadecimal value to indicate the results. See wiced_result.h.
It is not recommend to modify this header file, because it may break other applications.
I would suggest you to create another custom list for your application which will return the string instead of the value of the results.
Thanks,
-Dheeraj