C Language Development Kit/Functions/SetBltAddress

From OptiWiki

Jump to: navigation, search
Description This function stores the bluetooth address in flash memory.
Syntax
void SetBltAddress(const char * address);
Arguments
const char * address
Address holds the 12 digit unique bluetooth hardware address where the OPL9724 or OPL9712 wants to connect to.
Returns None.
Remarks The bluetooth adress can also be set from the system menu.

GetBltAddress() retrieves the bluetooth address.

Example
#include "lib.h"
#include <stdio.h>
 
void main( void )
{
    cursor( NOWRAP );
    for(;;)
    {
        printf("\fchange address\n%s\nto\n008098344e59", GetBltAddress());
        resetkey();
        while( !kbhit() )
            idle();
        SetBltAddress("008098344e59");
 
        printf("\fBlt Address:\n%s", GetBltAddress() );
        resetkey();
        while( !kbhit() )
            idle();
    }
}


Views
Personal tools