Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    KorkyraBoyCRO
    @KorkyraBoyCRO
    hi i am trying to write code for displaying message titles, message text etc. but i am having a hard time managing your library so can u maybe give me some advice or starting point where to start modifying i mean specific file name cause there is to many of them to read them all
    Sandeep Mistry
    @sandeepmistry
    @KorkyraBoyCRO I don't think you'll need to modify anything in the library itself
    you'll just have to expand the example and BLERemoteCharacteristic class/API
    • use the BLERemoteCharacteristic class/API
    KorkyraBoyCRO
    @KorkyraBoyCRO
    so u mean this one: https://github.com/sandeepmistry/arduino-BLEPeripheral/blob/master/BLERemoteCharacteristic.cpp
    and yes i noticed i example there is no defined attributes of notification like its done for category, events etc..
    Sandeep Mistry
    @sandeepmistry
    @KorkyraBoyCRO yes
    you'll have to do something similar like node-ancs does
    KorkyraBoyCRO
    @KorkyraBoyCRO
    ok i have already started working on example, i mean expanding it...i wanted to ask you is it possible to make this work with teensy 3.1 cause i am having trouble with memory limits on UNO R3
    Sandeep Mistry
    @sandeepmistry
    @KorkyraBoyCRO ya, the library is a memory hog on the nRF8001 side (although 2KB of RAM isn't a lot)

    Teensy support should be straightforward, changing the following in various spots:

    ifdef AVR

    to:

    if defined(AVR) || defined(MK20DX128) || defined(MK20DX256) || defined(MKL26Z64)

    Sandeep Mistry
    @sandeepmistry
    @KorkyraBoyCRO I've pushed support for Teensy: sandeepmistry/arduino-BLEPeripheral@decf327
    Niek Blankers
    @niekproductions
    Hi Guys. I'm looking for a solution to have Arduino BLE 'beacons' spread around an event which broadcast some information (~100 bytes) to any Arduino nearby. Would this be possible using the nrf8001 and this library? Thank you
    Sandeep Mistry
    @sandeepmistry
    you'd have to interleave the data, nRF8001 can only broadcast 20 bytes at a time of customs data
    Niek Blankers
    @niekproductions
    Thanks for your response @sandeepmistry . To be clear, it is possible to use the 8001 as both a central broadcasting node as well as a 'scanning' node?
    Sandeep Mistry
    @sandeepmistry
    nope, only broadcaster
    Niek Blankers
    @niekproductions
    Thanks for clarifying
    driesderoeck
    @driesderoeck
    I'm having an issue using the library as keyboard hid on android devices, all works perfectly fine on iOS devices - but can't get anything through to an android device. Is this something to do with the "#ifdef ANDROID_CENTRAL" line?
    driesderoeck
    @driesderoeck
    Okay, figured it out - #define android_central did the trick. Thanks so much for this library!
    Sandeep Mistry
    @sandeepmistry
    @driesderoeck cool! thanks for the positive feedback :)
    mebarrington
    @mebarrington
    I found this repository incredibly helpful! Thanks! I am trying to get the ibeacon code to run for 5 seconds after a button press. I can't seem to get the BLE Nano to stop broadcasting once it starts in setup. Any advice?
    Sandeep Mistry
    @sandeepmistry
    @mebarrington have you tried the blePeripheral.end() API?
    Rbasarat
    @Rbasarat
    @sandeepmistry Hey i would like to know if it is possible to send a string to multiple devices with ble
    Sandeep Mistry
    @sandeepmistry
    @Rbasarat the library only supports one connection at a time
    however, you can use the advertisement data to broadcast 20 bytes at a time
    this does not require connections, take a look at the Eddystone code in the library
    Rbasarat
    @Rbasarat
    @sandeepmistry Hey when i try to run your library and the standard nfr8001 library i get conflicts.. it sais that there are multiple definitions.. is your library compatible with the standard nfr8001 library?
    Sandeep Mistry
    @sandeepmistry
    @Rbasarat the libraries are not compatible
    think of BLEPeripheral as a replacement for the Nordic nRF8001 lib. It actually bundles a modified version
    why do you need to use both versions together?
    Denis.
    @dennysdm5_twitter
    @sandeepmistry Hi! I am trying to establish a serial conection between my arduino 101 board and my phone. I've been looking your library and tried to run the "Serial" example, but when i try to compile it shows an error "Unsupported platform". Does it mean that the library is not compatible with Arduino101 board? Thank you so much for your help!
    Sandeep Mistry
    @sandeepmistry
    @dennysdm5_twitter the library is not compatible with the 101 board, you need to use CurieBLE
    However, if you change all of the includes in the Serial example files from "BLEPeripheral.h" to "CurieBLE.h" i expect this to work
    laynier
    @laynier
    @sandeepmistry Hi, and thanks! Question: Is this code ready for configuration mode? I mean updating URI, device name, etc.? How do I enable it?
    Sandeep Mistry
    @sandeepmistry
    @laynier there's no configuration mode in the example/library
    however, it should be straightforward to add, PR's welcome :D
    brendanpg
    @brendanpg
    hi. I am using waveshare nrf51822 from nordic to act as beacon. Do you have any eddystone beacon libraries for this setup?
    brendanpg
    @brendanpg
    I really need your help for my project guys. Please help me. :worried:
    brendanpg
    @brendanpg
    hi. I am using waveshare nrf51822 from nordic and a blackmagic probe. Do you have any eddystone beacon libraries for this setup?
    brendanpg
    @brendanpg
    @sandeepmistry Hi sir! I am using your repo (https://github.com/sandeepmistry/arduino-BLEPeripheral) to program my nrf51822/waveshare ble400. I am using a blackmagic probe instead of jlink. How can I use this repo to work in blackmagic probe?
    brendanpg
    @brendanpg
    @sandeepmistry hi sandeep. Does your repo support waveshare ble400 using blackmagic probe instead of jlink? If not, how can I modify them?
    U─čur Erkan
    @ugurerkan
    Hello, thank you for this library. I have a question, what should i do receive string from device not as char by char write?
    I mean want to send char buffer to BLE device.
    sorry found my mistake, i was setup ble with char characteristic
    Lee Irvine
    @loofy2
    NRF52832 support?
    I don't know what I'm doing wrong, but I can't compile with BLEPeripheral.h included for BLE Nano v2 boards. Same code works with 1.5
    got BLE2 board manager software from here https://redbear.github.io/arduino/package_redbear_nRF5x_index.json
    Tamojit Saha
    @TamojitSaha
    Tamojit Saha
    @TamojitSaha
    Does nrf51822 support stactic passkey pairing?\
    Tamojit Saha
    @TamojitSaha
    anyone cares to reply???