Arduino library for using the Microchip RN487x BLE module.
Updated to work with chipKIT boards.
Quick example:
#include "RN487x_BLE.h"
#define bleSerial Serial1
#define BT_RESET 7
#define BLUETOOTH_WAKE 12
void setup()
{
rn487xBle.hwInit(BT_RESET, BLUETOOTH_WAKE);
bleSerial.begin(rn487xBle.getDefaultBaudRate());
rn487xBle.initBleStream(&bleSerial);
if (rn487xBle.swInit())
{
rn487xBle.enterCommandMode();
rn487xBle.stopAdvertising();
rn487xBle.setAdvPower(3);
rn487xBle.setSerializedName("Microchip");
rn487xBle.clearAllServices();
rn487xBle.reboot();
}
}
void loop()
{
}
v1.0.0 Initial Release
v1.1.0 Release
- enterCommandMode() now properly handles situation where module has prompt turned on or off
- Library now keeps track of if it is in command mode or not
- Added function setOperationMode()
- Added startCustomAdvertising() function
- Added support for PIC32 (chipKIT)
- Moved reset and wake pin definitions into hwInit() so that different boards can be supported without editing library
v1.2.0 Release
- Examples updated to work properly with chipKIT boards (like Fubarino Mini and RGB Station)
(c) 2016 Microchip Technology Inc. and its subsidiaries. You may use this software and any derivatives exclusively with Microchip products.
THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION
WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION.
IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
MICROCHIP PROVIDES THIS SOFTWARE CONDITIONALLY UPON YOUR ACCEPTANCE OF THESE
TERMS.