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:
- 3:ff63deac3f4a
- Parent:
- 2:3232132ce1ea
- Child:
- 4:4643a545bcf9
--- a/GUI.cpp Wed Mar 24 01:11:38 2021 +0000 +++ b/GUI.cpp Wed Mar 24 23:39:40 2021 +0000 @@ -17,9 +17,15 @@ } -void GUI::refreshConnection() +void GUI::refreshConnection(bool* flag) { - ws.connect(); + if(ws.connect()) { + printf("WS connected\r\n"); + *flag = true; + } else { + printf("WS failed\r\n"); + *flag = false; + } } bool GUI::receives(int *survivalSpeed, bool *activeTracking, bool *powerOn, float *sunAngle)