dconstructing / rfm69

Node module for interfacing with HopeRF RFM69 modules on a Raspberry Pi
14 stars 6 forks source link

Add support for lowPowerLab toAddress #3

Open harking opened 9 years ago

harking commented 9 years ago

In the lowPowerLab rfm69 Arduino library they support sending to a specific address: https://github.com/LowPowerLab/RFM69/blob/master/RFM69.cpp#L288

Would this be appreciated in the node library? If so I would consider contributing it. I believe we would need to send more optional parameters to preparePayload. https://github.com/dconstructing/rfm69/blob/master/lib/configurations/lowPowerLab.js#L13

Thanks for the feedback.

losttime commented 9 years ago

Yes, this sort of contribution would absolutely be appreciated.

I imagine the destination address would need to be passed in through rfm69.send(), to rfm69._attemptSend(), to config.preparePayload(). I'm not sure I have a preferred method of adding optional parameters to a function, so I'm open to suggestions.