Skip to content

chipKIT32-libraries/RN487x

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RN487x

Arduino library for using the Microchip RN487x BLE module.

Updated to work with chipKIT boards.

Usage

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()
{
}

Contributing

History

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)

License

(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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 92.2%
  • C 7.0%
  • Shell 0.8%