Pages: [1]   Go Down
Author Topic: Mirf: Setting target address dynamically.  (Read 229 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have been working with the Mirf library in the course of a project I'm working on. This is working fine, however I walked into a problem.

For the project, I use an Arduino as a 'base station' to send and receive radio communication. The idea of this base station is that it is able to send commands to nodes in the vicinity. I currently have programmed the receiver and target address hardcoded in all Arduinos in the network. However, I want to set the target address on the base station dynamically.

I currently have written the following program to send commands using Serial communication with a server. It reads back the target address perfectly, but setting it appears to not be working. When I manually set it to the correct address, everything works fine. The code that is troubling me starts at line 93.

http://pastebin.com/LYhWLUer
Logged

Pages: [1]   Go Up
Jump to: