4 Replies Latest reply on Jul 14, 2015 2:37 PM by user_14586677

    Constant 6 digit passowrd

    vvk

       Is it possible to have a constant password for BLE device ? If so how to do it ?

         

      Following is th snippet of code where it generates Random 6 digit password and I want to make it contant.

         
                      case CYBLE_EVT_GAP_PASSKEY_DISPLAY_REQUEST:   
         
              
         
                          UART_UartPutString("Enter this passkey in your peer device: ");   
         
                          UART_UartPutChar(HexToDecimal(*(uint32 *)eventParam, 5));   
         
                          UART_UartPutChar(HexToDecimal(*(uint32 *)eventParam, 4));   
         
                          UART_UartPutChar(HexToDecimal(*(uint32 *)eventParam, 3));   
         
                          UART_UartPutChar(HexToDecimal(*(uint32 *)eventParam, 2));   
         
                          UART_UartPutChar(HexToDecimal(*(uint32 *)eventParam, 1));   
         
                          UART_UartPutChar(HexToDecimal(*(uint32 *)eventParam, 0));   
         
                          break;   
         
              
         
          Thanks,   
         
          Vivek