C Language Development Kit/Functions/GetBltLocalName

From OptiWiki

Jump to: navigation, search
Description This function reads the localname stored in flash from the OPL9724.
Syntax
unsigned char * GetBltLocalName(void);
Arguments None
Returns The local name stored in the flash memory.
Remarks The bluetooth localname can be set from the system menu or by the SetBltLocalName() function.
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();
    }
}


Views
Personal tools