Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 4 months ago.
where is documentation for 'gets' 'getc' 'putc' for serial communication?
my devboard: nrf51 DK
I am currently testing a simple UART serial communication code and checked out examples from this page.
https://developer.mbed.org/handbook/Serial
but I found something weird.
The example uses 'printf' function but this is not explained in the API summary for serial class reference(where it explains baud, read, write, kind of functions).
I know that the serial.printf(" ") functions work but why isn't this mentioned in the API summary?
This is the same for 'gets' function. I want to know more about 'gets' function for serial class because I'm trying to implement a read buffer with gets in serial communication.
can someone explain why 'printf, gets' sort of functions are not included in the API summary but still works?
3 Answers
5 years, 10 months ago.
"Page not found" does not really help with the documentation.
6 years, 2 months ago.
Hi there,
For Mbed OS 5+ the documentation for gets
, putc
, getc
, etc. are available within the Serial
API documentation page here: https://os.mbed.com/docs/latest/apis/serial.html
Also, as Sharveya stated in the comments, the RawSerial
API documentation is here: https://os.mbed.com/docs/latest/apis/rawserial.html
Please let me know if you have any questions!
- Jenny, team Mbed
If this solved your question, please make sure to click the "Thanks" link below!
5 years, 2 months ago.
Hello Jenny, what's going on? You said "For Mbed OS 5+ the documentation for gets, putc, getc, etc. are available within the Serial API documentation page here: https://os.mbed.com/docs/latest/apis/serial.html" but that is not true.
Here main thing we have to understand is that ........these functions are normally used in c and c++.....These are not directly related to the serial class.....so that not included into serial class public member functions..... These classes are inherited from the parent class from default c and c++ libraries.....
note -see in raw serial class (raw serial)..... here is the Raw serial link
posted by Sharveya Bhise 15 Jul 2016-> https://developer.mbed.org/users/mbed_official/code/mbed/docs/252557024ec3/classmbed_1_1RawSerial.html