Is there a way to read the Mac address of a BL6xx or BT900 from smartBASIC?

Answer

If you call the smartBASIC function "SysInfo$ and set it to 4, it will print out the Bluetooth address of the module. If you set that function to 14, it will show the random public address unique to this module. It may be the same value as the above 4 value unless AT+MAC was used to set an IEEE mac address. However, the output from SysInfo$ is in hex with delimiters. With that in mind, the terminal interprets it as an ASCII character. Before printing, you would need de-hexize the string with the function ?strhexize$(s$)?. Please note that you will need to define ?s$?. This is described below: dim s$ : s$ = sysInfo$(4) PRINT strhexize$(s$) PRINT "

SysInfo$(4) = ";SysInfo$(4) // address of module PRINT "

SysInfo$(14) = ";SysInfo$(14) // public random address PRINT "

SysInfo$(0) = ";SysInfo$(0)