BTool.SendCmds.SendGATT C# (CSharp) Method

SendGATT() public method

public SendGATT ( HCICmds cmd ) : bool
cmd HCICmds
return bool
        public bool SendGATT(HCICmds.GATTCmds.GATT_ExchangeMTU cmd)
        {
            bool success = true;
            try
            {
                byte dataLength = cmd.dataLength;
                byte[] data = new byte[(int)dataLength + 4];
                int index = 0;
                bool dataErr = false;
                if (m_deviceFormUtils.LoadMsgHeader(ref data, ref index, 1, cmd.opCodeValue, dataLength)
                && !m_dataUtils.Load16Bits(ref data, ref index, cmd.connHandle, ref dataErr, false)
                && !m_dataUtils.Load16Bits(ref data, ref index, cmd.clientRxMTU, ref dataErr, false))
                    TransmitCmd(cmd.cmdName, cmd.opCodeValue, data);
                if (dataErr)
                    success = HandleDataError(cmd.cmdName);
            }
            catch (Exception ex)
            {
                success = HandleException(cmd.cmdName, ex.Message);
            }
            return success;
        }

Same methods

SendCmds::SendGATT ( HCICmds cmd, SendCmds callback ) : bool
SendCmds::SendGATT ( HCICmds cmd, TxDataOut cmdType ) : bool
SendCmds::SendGATT ( HCICmds cmd, TxDataOut cmdType, SendCmds callback ) : bool
SendCmds::SendGATT ( HCICmds cmd, byte valueData, SendCmds callback ) : bool