docs: protected final void setConnected(boolean value) {
          if (value && !isConnected) {
              isConnected = value;
              if (connectionListener != null) {
                  connectionListener.onIoDeviceConnected(this);
              }
          } else if (!value && isConnected) {
              isConnected = value;
              if (connectionListener != null) {
                  connectionListener.onIoDeviceDisconnected(this);
              }
          }
      }