Dim SER As Serial
SER.Initialize("SER")
Log(SER.name)
Dim i As Intent
i.Initialize("android.settings.BLUETOOTH_SETTINGS", "")
StartActivity(i)
Sorry, I misunderstood.
Do you want to change the Bluetooth name of the device without notifying the user ?
Still I believe I understood you well.
1- You have a bluetooth device (not windows computer), that your app will communicate with.
2- That device has MAC address and default friendly name
3- You want to change the default friendly name.
If the above is correct, then I (believe) the best way to change that name is by sending AT commands
to the BT device through wired connection as I described in my first reply.
Maybe it's possible to update the Serial library (BluetoothAdmin type) with this new method.
But the way that I want to do that is programatically within my app that is installed on my device, not by manualy changing Bluetooth settings.
It is not about manually and grammatically.. it is about the device must be physically connected to the PC (or any host mController).
e.g. if the AT command is AT+NAME="New Name"/r/n , then you can put this in your program, or use a comm terminal to send it
to the bt device.. but in both cases the device MUST be connected by serial cable to your machine, this is what I am trying to say.
Also before connecting the device you need to pull-up some pins to VCC. this way you put the device in command mode, ready to edit the params.
Dim BTFN As BTFN
Log(BTFN.Name)
BTFN.setName("NewName")
Log(BTFN.Name)
Thanks for sharing the lib.. it has a very small footprint, just over 1k.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?