Fork HTTPClient and Modfiy code for mbed 6.0
Dependents: mbed-demo-http-get-json
Diff: HTTPClient.h
- Revision:
- 38:2ef07232f65c
- Parent:
- 37:74c1c4527f70
- Child:
- 49:c5abb7ae070b
--- a/HTTPClient.h Sat Dec 17 15:19:55 2016 +0000 +++ b/HTTPClient.h Thu Dec 29 20:14:53 2016 +0000 @@ -60,6 +60,15 @@ HTTPClient(); ~HTTPClient(); + /// Get the text form of the error number + /// + /// Gets a pointer to a text message that described the result code. + /// + /// @param[in] res is the HTTPResult code to translate to text. + /// @returns a pointer to a text message. + /// + static const char * GetErrorMessage(HTTPResult res); + /** Provides a basic authentification feature (Base64 encoded username and password) Pass two NULL pointers to switch back to no authentication