Пример #1
0
 private void SetConnectionParameters()
 {
     HCICmds.GAPCmds.GAP_SetParam gapSetParam = new HCICmds.GAPCmds.GAP_SetParam();
     gapSetParam.paramId = HCICmds.GAP_ParamId.TGAP_CONN_EST_INT_MIN;
     gapSetParam.value = (ushort)nudMinConnInt.Value;
     devForm.sendCmds.SendGAP(gapSetParam);
     gapSetParam.paramId = HCICmds.GAP_ParamId.TGAP_CONN_EST_INT_MAX;
     gapSetParam.value = (ushort)nudMaxConnInt.Value;
     devForm.sendCmds.SendGAP(gapSetParam);
     gapSetParam.paramId = HCICmds.GAP_ParamId.TGAP_CONN_EST_LATENCY;
     gapSetParam.value = (ushort)nudSlaveLatency.Value;
     devForm.sendCmds.SendGAP(gapSetParam);
     gapSetParam.paramId = HCICmds.GAP_ParamId.TGAP_CONN_EST_SUPERV_TIMEOUT;
     gapSetParam.value = (ushort)nudSprVisionTimeout.Value;
     devForm.sendCmds.SendGAP(gapSetParam);
 }