C Language Development Kit/Functions/SetBltLocalName
From OptiWiki
| Description | This function stores the bluetooth localname in flash memory. |
| Syntax | void SetBltLocalName(const char * localname); |
| Arguments | the name that is stored in flash and shown when an other device does a
const char * localname discovery e.g. a PC. The maximum size of localname can be 18 characters long. |
| Returns | None |
| Remarks | The bluetooth localname can also be set from the system menu. GetBltLocalName()
retrieves the bluetooth localname. Although the localname can consist of capitals only lowercase characters are shown during a discovery. When another device has discovered the OPL9724 or OPL9712 with a specific name and bluetooth address and the localname and the localname is changed the other device receives the new name on the next discovery or connection. |
| Example | #include "lib.h" #include <stdio.h> void main( void ) { cursor( NOWRAP ); for(;;) { printf("\fchange localn\n%s\nto\nEXAMPLE NAME", GetBltLocalName()); resetkey(); while( !kbhit() ) idle(); SetBltLocalName("EXAMPLE NAME"); printf("\fLocalname:\n%s", GetBltLocalName() ); resetkey(); while( !kbhit() ) idle(); } } |
