Constant 6 digit passowrd

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 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   
0 Likes
4 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum!

   

The place you pointed to is not where the password is generated, it has been received and is now displayed. Don't know if it can be made a constant.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

 Any clues on where the 6 digits are generated ?

   

Thanks,

   

Vivek.

0 Likes
Anonymous
Not applicable

Any update on this issue? I'm facing the same problem. 

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

File a CASE on this -

   

 

   

To create a technical or issue case at Cypress -

   

 

   

www.cypress.com

   

“Support”

   

“Technical Support”

   

“Create a Case”

   

 

   

You have to be registered on Cypress web site first.

   

 

   

Regards, Dana.

0 Likes