by bengchet » Fri Jan 08, 2016 12:40 pm
Hi,
To connect 2 BlueBee 4.0, one of them must be master and another is the slave.
The trick part is to initiate master connection to slave. If master module is connected to other devices before wirelessly such as phone etc, you will need to clear previous connected device address for the module. If the master module has cleared previous connected device, it will automatically search for nearby BlueBee or compatible BLE device to connect. Once it has connected to one device, that particular device will be remembered, and next time if master module powers up and that particular device is powered up too, they will be connected instantly.
Steps:
1. Have 2 BlueBee 4.0 ready. Both are powered up. BlueBee A - slave, BlueBee B - master
2. Set BlueBee A to slave modeand make sure it is powered up and near to the another BlueBee B.
3. Make sure BlueBee B is in slave mode. Set BlueBee B to clear previous device address.
4. Set BlueBee B to master mode.
5. Reset both BlueBee.
*Besides using APIs, enter AT command directly using serial monitor will become handy in this case.
AT+ROLB0 - set to slave mode
AT+ROLB1 - set to master mode
AT+CLEAB - clear previous device address
You can refer to user manual for instructions to configure BlueBee 4.0 using AT commands.
Yes most of APIs are for configuration of BlueBee 4.0. When 2 BlueBee 4.0 are connected, APIs such as read, print, available, still can be used to transfer and receive data between them. DigitalWrite and digitalRead I/O can also be used to control and monitor I/Os of connected BlueBee 4.0.
Yes, BlueBee 4.0 module is HM12 BlueTooth module.