| 57 | } |
| 58 | |
| 59 | String StationClass::getConnectionStatusName() const |
| 60 | { |
| 61 | switch(getConnectionStatus()) { |
| 62 | case eSCS_Idle: |
| 63 | return F("Idle"); |
| 64 | case eSCS_Connecting: |
| 65 | return F("Connecting"); |
| 66 | case eSCS_WrongPassword: |
| 67 | return F("Wrong password"); |
| 68 | case eSCS_AccessPointNotFound: |
| 69 | return F("Access point not found"); |
| 70 | case eSCS_ConnectionFailed: |
| 71 | return F("Connection failed"); |
| 72 | case eSCS_GotIP: |
| 73 | return F("Successful connected"); |
| 74 | default: |
| 75 | SYSTEM_ERROR("Unknown status: %d", getConnectionStatus()); |
| 76 | return nullptr; |
| 77 | }; |
| 78 | } |