Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: GUI.cpp
- Revision:
- 5:8a9cb632e91b
- Parent:
- 4:4643a545bcf9
--- a/GUI.cpp Thu Mar 25 01:17:19 2021 +0000 +++ b/GUI.cpp Thu Mar 25 02:29:16 2021 +0000 @@ -32,6 +32,12 @@ } } +bool GUI::isConnected(bool *flag){ + nsapi_connection_status_t ind = eth->get_connection_status(); + *flag = (ind == NSAPI_STATUS_DISCONNECTED) ? false : true; + return *flag; +} + bool GUI::receives(int *survivalSpeed, bool *activeTracking, bool *powerOn, float *sunAngle) { char recvSer[500];