computourist / RFM69-MQTT-client

Arduino - RFM69 based sensors and MQTT gateway
GNU General Public License v2.0
81 stars 27 forks source link

Relay end node #3

Closed etrombly closed 9 years ago

etrombly commented 9 years ago

Added a relay end node. Also created a device class to make adding more devices easier.

computourist commented 9 years ago

Ha, a real programmer ;-) Thanx for your collaberation. I have one issue before merging: I intend to change the way binary inputs behave, to allow easier implementation in Openhab. I will try to finish my code in a few days. Will this affect your relay end node ?

etrombly commented 9 years ago

It's fine. I'm actually probably going to branch off from here. The wireless reception is a little flaky with my python library. I think it's a combination of python being a little slower, and the packets not having some sort of sequence number. So for sendWithRetry to work correctly you have to get lucky that the next packet you receive is the ack, or else it throws away the packet. So I'm probably going to add a sequence field to the packet so you can keep track of acks. That way you shouldn't have to send as many tries to get a good ack. That'll break compatibility with you though. If you'd like I'll show you what I come up with, so you can see if it's something you'd like to use as well. Might take me a little while though.

 On Wednesday, March 4, 2015 5:07 PM, computourist <notifications@github.com> wrote:

Ha, a real programmer ;-) Thanx for your collaberation. I have one issue before merging: I intend to change the way binary inputs behave, to allow easier implementation in Openhab. I will try to finish my code in a few days. Will this affect your relay end node ?— Reply to this email directly or view it on GitHub.