C Language Development Kit/Functions/GetBltAddress
From OptiWiki
| Description | This function reads the bluetooth address from flash. |
| Syntax | unsigned char * GetBltAddress(void); |
| Arguments | None |
| Returns | The bluetooth address that is stored in the flash. |
| Remarks | The bluetooth adress can be set from the system menu or by the SetBltAddress() function. |
| 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(); } } |
