This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using BLEPeripheral and MySensors libraries

I am using BLEPeripheral and MySensors libraries and nRF51822 device(client side). I want to change functionality, if I press key of nRF51822 device it should start to advertise otherwise connect with another device (nodeMCU nad nRf24L01) act as a gateway. here client is connecting and communicating with the gateway and if I am pressing key communication is stopped but nRf51822 is not advertising. I am using Arduino platform. I tried separately both library it is working fine. please help how to resolve this issue.

Thank you

Parents
  • Yes, according to this website this seems to be true.

    The Arduino port for nRF52 MCUs provided for Arduino Primo Boards is not compatible with MySensors at the moment. The reason is the existence of the SoftDevice handling BLE connections. MySensors can be compiled for the Primo board, but the NVM driver is incompatible. When Arduino Primo has an option to disable the SoftDevice, then MySensors can be used with the Arduino Primo variant. You can use the Arduino Primo variants with a custom board definition with the MySensors board definition.

    I'm not familiar with the MySensors library. But it seems that if you need to use this library, you will need to turn off the Bluetooth while you are using the library. For further help on this issue, you might have better luck asking in the MySensor forum and other forums for the Arduino platform.

Reply
  • Yes, according to this website this seems to be true.

    The Arduino port for nRF52 MCUs provided for Arduino Primo Boards is not compatible with MySensors at the moment. The reason is the existence of the SoftDevice handling BLE connections. MySensors can be compiled for the Primo board, but the NVM driver is incompatible. When Arduino Primo has an option to disable the SoftDevice, then MySensors can be used with the Arduino Primo variant. You can use the Arduino Primo variants with a custom board definition with the MySensors board definition.

    I'm not familiar with the MySensors library. But it seems that if you need to use this library, you will need to turn off the Bluetooth while you are using the library. For further help on this issue, you might have better luck asking in the MySensor forum and other forums for the Arduino platform.

Children
No Data
Related