Showing buttons based on a message received by arduino

Although it’s clearer it is unsafe, b/c if it happens message is null it’s gonna throw an NPE error: :warning:
Docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/lang/NullPointerException.html

While received = "ack_on".equals(message); is Exception-free b/c a literal String is never null & method equals() accepts a passed null argument: :wink:

3 Likes