JoaoValente wrote:Is it possible to change this same PIN programmatically through your API or by any other means?
Thanks in advance
Currently, neither the API nor the firmware are prepared to do so, but it should be possible to change the PIN by tapping into
the Bluetooth module UART
interface. If you're using a BITalino Freestyle
, you can just hook the Bluetooth block up to an FTDI, and use the Hyperterminal or any substitute way of sending commands to the module.
To change the pin, the command should be AT+PINxxxx
, although you're advised to confirm in the reference guide for the module we're currently using:http://www.micro4you.com/files/ElecFreaks/Bluetooth%20HC-06.pdf
If you have a BITalino Board
, you'll have to do some exploration in order to confirm what the best way of sending the AT commands to the module can be. Given that the UART is connected by default to the MCU block, and hence would be shared between the MCU and the FTDI, it may not work unless you cut the RX and TX lines and the re-solder them afterwards.
It should not the case for the PIN, but note that changing the settings
on the Bluetooth module may render your BITalino unreachable.
The BITalino Team