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

How to send single bit data from a nrf-51822ek slave on a nrf51822ek-master

Hi, My project is that when a button is pressed on a slave (nrf51822ek), a central (another nrf51822) gets to know which slave has triggered and sends its status 1/0 to a webserver made on php or asp. From this server , data is sent to a mobile app.

i have burnt multilink_peripheral code sample on my slave and multilink_central code sample on my central kit, right now when i connect central to PC, hyperterminal shows "Advertising notification" on button press of slave kit, but what i need on central, is a bit 1/0 that toggles on button press on slave kit. Dongle shows a bit toggling in MCP when a button is pressed but on hyper terminal i am not getting this bit value .

As i am new to hardware therefore it is causing me much difficulties and i have near deadline to meet.

Thank you Any sort of help will be appreciated!

Parents
  • You will find the address on the central when examening the: p_ble_evt->evt.gap_evt.params.adv_report.peer_addr / p_ble_evt->evt.gap_evt.params.connected.peer_addr <-- Just look for peer_addr Here you can look at the deive that sendt the events address.

    If you do not need any receit on the device triggering the btn I would simply go for sending the button press in the advertisement package

Reply
  • You will find the address on the central when examening the: p_ble_evt->evt.gap_evt.params.adv_report.peer_addr / p_ble_evt->evt.gap_evt.params.connected.peer_addr <-- Just look for peer_addr Here you can look at the deive that sendt the events address.

    If you do not need any receit on the device triggering the btn I would simply go for sending the button press in the advertisement package

Children
No Data
Related