private void returnTemperature(Buffer buffer) {
        Callback<Integer> callback = getFirstCallback(BeanMessageID.CC_TEMP_READ);
        if (callback != null) {
            callback.onResult((int) buffer.readByte());
        }
    }
private void returnTemperature ( Buffer buffer ) { Callback < Integer > callback = getFirstCallback ( BeanMessageID . CC_TEMP_READ ) ; if ( callback != null ) { callback . onResult ( ( int ) buffer . readByte ( ) ) ; } }
Call the onResult callback for {@link com.punchthrough.bean.sdk.Bean#readTemperature(com.punchthrough.bean.sdk.message.Callback)} (com.punchthrough.bean.sdk.message.Callback)}.
@param buffer Raw message bytes from the Bean