C Language Development Kit/Functions/GetBltPin
From OptiWiki
| Description | This function reads the bluetooth pincode that is needed for authentication from flash. |
| Syntax | unsigned char * GetBltPin(void); |
| Arguments | None |
| Returns | The bluetooth pincode that is stored in the flash. |
| Remarks | The bluetooth pincode can be set from the system menu or by the SetBltPin() function.
If on the device that the OPL9724 connects to no authentication is needed then no pincode needs to be set. The maximum size for the pincode is 16 characters. |
| Example | #include "lib.h" #include <stdio.h> void main( void ) { cursor( NOWRAP ); for(;;) { printf("\fChange pincode\n%s\nto\n123456", GetBltPin()); resetkey(); while( !kbhit() ) idle(); SetBltPin("123456"); printf("\fBlt pincode:\n%s", GetBltPin() ); resetkey(); while( !kbhit() ) idle(); } } |
