question: public boolean rename ( String name ) { if ( name == null || name . length ( ) <= 0 ) throw new NullPointerException ( "The passed name is invalid, have you checked its validity?" ) ; else if ( ! isConnected ( ) ) { onError ( OneSheeldError . DEVICE_NOT_CONNECTED ) ; return false ; } else if ( isUpdatingFirmware ( ) ) { onError ( OneSheeldError . FIRMWARE_UPDATE_IN_PROGRESS ) ; return false ; } else if ( hasRenamingStarted ) { Log . i ( "Device " + this . name + ": Device is in the middle of another renaming request." ) ; return false ; } renamingRetries = MAX_RENAMING_RETRIES_NUMBER ; hasRenamingStarted = true ; return sendRenamingRequest ( name ) ; }
target:  Rename the board. Note: if the new name does not have "1Sheeld" in its name, it will not be visible in any future scans by the SDK.