Skip to content

Commit 88e8569

Browse files
committed
1 parent 0e2cdf6 commit 88e8569

File tree

1 file changed

+1
-54
lines changed

1 file changed

+1
-54
lines changed

src/AdafruitIO.cpp

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -254,59 +254,6 @@ AdafruitIO_Dashboard *AdafruitIO::dashboard(const char *name) {
254254
*/
255255
/**************************************************************************/
256256
const char *AdafruitIO::statusText() {
257-
const char *statusMsg;
258-
switch (_status) {
259-
260-
// CONNECTING
261-
case AIO_IDLE:
262-
statusMsg = "Idle. Waiting for connect to be called...";
263-
break;
264-
case AIO_NET_DISCONNECTED:
265-
statusMsg = "Network disconnected.";
266-
break;
267-
case AIO_DISCONNECTED:
268-
statusMsg = "Disconnected from Adafruit IO.";
269-
break;
270-
271-
// FAILURE
272-
case AIO_NET_CONNECT_FAILED:
273-
statusMsg = "Network connection failed.";
274-
break;
275-
case AIO_CONNECT_FAILED:
276-
statusMsg = "Adafruit IO connection failed.";
277-
break;
278-
case AIO_FINGERPRINT_INVALID:
279-
statusMsg = "Adafruit IO SSL fingerprint verification failed.";
280-
break;
281-
case AIO_AUTH_FAILED:
282-
statusMsg = "Adafruit IO authentication failed.";
283-
break;
284-
285-
// SUCCESS
286-
case AIO_NET_CONNECTED:
287-
statusMsg = "Network connected.";
288-
break;
289-
case AIO_CONNECTED:
290-
statusMsg = "Adafruit IO connected.";
291-
break;
292-
case AIO_CONNECTED_INSECURE:
293-
statusMsg =
294-
"Adafruit IO connected. **THIS CONNECTION IS INSECURE** SSL/TLS "
295-
"not supported for this platform.";
296-
break;
297-
case AIO_FINGERPRINT_UNSUPPORTED:
298-
statusMsg = "Adafruit IO connected over SSL/TLS. Fingerprint verification "
299-
"unsupported.";
300-
break;
301-
case AIO_FINGERPRINT_VALID:
302-
statusMsg = "Adafruit IO connected over SSL/TLS. Fingerprint valid.";
303-
break;
304-
default:
305-
statusMsg = "Unknown status code";
306-
break;
307-
}
308-
return statusMsg;
309-
}
310257
#else
311258
/**************************************************************************/
312259
/*!
@@ -316,6 +263,7 @@ const char *AdafruitIO::statusText() {
316263
*/
317264
/**************************************************************************/
318265
const __FlashStringHelper *AdafruitIO::statusText() {
266+
#endif
319267
switch (_status) {
320268

321269
// CONNECTING
@@ -354,7 +302,6 @@ const __FlashStringHelper *AdafruitIO::statusText() {
354302
return F("Unknown status code");
355303
}
356304
}
357-
#endif
358305

359306
/**************************************************************************/
360307
/*!

0 commit comments

Comments
 (0)