Original Author Paul Laughton, 2011
Page 130
De Re BASIC!
Bt.read.bytes <svar>
The next available message is placed into the specified string variable. If there is no message then the
string variable will be returned with an empty string ("").
Each message byte is placed in one character of the string; the upper byte of each character is 0. This is
similar to Byte.read.buffer, which reads binary data from a file into a buffer string.
Bt.device.name <svar>
Returns the name of the connected device in the string variable. A run-time error will be generated if no
device (Status <> 3) is connected.
Bt.set.UUID <sexp>
A Universally Unique Identifier (UUID) is a standardized 128-bit format for a string ID used to uniquely
identify information. The point of a UUID is that it's big enough that you can select any random 128-bit
number and it won't clash with any other number selected similarly. In this case, it's used to uniquely
identify your application's Bluetooth service. To get a UUID to use with your application, you can use
one of the many random UUID generators on the web.
Many devices have common UUIDs for their particular application. The default BASIC! UUID is the
standard Serial Port Profile (SPP) UUID: "00001101-0000-1000-8000-00805F9B34FB".
You can change the default UUID using this command.
Some information about 16 bit and 128 bit UUIDs can be found at:
Communication: Phone and Text
Email.send <recipient_sexp>, <subject_sexp>, <body_sexp>
The email message in the Body string expression will be sent to the named recipient with the named
subject heading.
MyPhoneNumber <svar>
The phone number of the Android device will be returned in the string variable. If the device is not
connected to a cellular network, the returned value will be uncertain.
Phone.call <sexp>
The phone number contained in the string expression will be called. Your device must be connected to a
cellular network to make phone calls.