nRF52840 Dual bleuart communication

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Jun__
 
Posts: 1
Joined: Thu Sep 30, 2021 3:11 am

nRF52840 Dual bleuart communication

Post by Jun__ »

I am a newbie coder and has a project where I have multiple listening posts(nrf52840 advertising and scanning for RSSI & MAC addr) and assets(nrf52840 just advertising), the listening post need to send assets RSSI to central(Raspberry pi) to do collect and prepare the data for other uses.

I managed to allow assets to advertise. However, when work on my listening post by following https://github.com/adafruit/Adafruit_nR ... al_bleuart example I can't seem to scan for assets after connections are made with central.

Correct me if I'm wrong as my listening post is connected to central then the listening post is peripheral and Raspberry Pi is central right?

From my understanding of the example code scanning of RSSI is done in Bluefruit.Scanner.setRxCallback(scan_callback); and sending data from peripheral to central is done in clientUart.setRxCallback(cent_bleuart_rx_callback); then how can I provide all RSSI value scanned while connected to central into cent_bleuart_rx_callback function?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”