public void setPin ( int pin , boolean active ) { Buffer buffer = new Buffer ( ) ; buffer . writeIntLe ( pin ) ; buffer . writeByte ( active ? 1 : 0 ) ; sendMessage ( BeanMessageID . BT_SET_PIN , buffer ) ; }
Set the Bean s security code .