So i want the IR sensor to have two outputs.. one to control a motor which will control a valve to restrict flow of liquid and the other outputs for LED indicators. Could you suggest how do i go about it?
@kr0815
Take a look here:
http://forum.mysensors.org/topic/2184/enhanced-dallas-temperature-example-with-permanent-sensor-index
I think this will solve your issue.
@anvil - great code sleuthing! I have been absent due to travel but to ensure this doesn't slip through the cracks and create future confusion for other users, I have filed GitHub issue https://github.com/mysensors/MySensors/issues/770 to add these defaults into the RPI gateway example for the 2.2.0 release.
With your increased familiarity with the code base, feel free to make the change and submit a GitHub PR if you are so inclined, otherwise it will wait until one of the core members makes the change.
(SOLVED)
PROBLEM CAUSE: some sort of unclear data in the memory of the board(sparkfun redboard), i think..
SOLUTION: uploading mock-sensor sketch and afterwards the wanted sketch
i soldered the de-CAP and tried within 2 meters range, but it didnt change.
than i got back to my office and uploaded serial gateway sketch to one board while the other board was still with repeater sketch.
the serial gateway showed correct log at the IDE like in the thread that Wijbe-Fryslan mentioned, but the repeater still didnt receive its data.
than i uploaded mock-sensor sketch to the second board and than the data appeared at the serial gateway log.
so i did the same procedure of uploading mock sketch , and than uploading the wanted sketch for each board (repeater and humidity) and went to the controller to check it and it worked!! thanks to the new original domoticz app i could check the log online for "sketch version" lines and afterwards i did reception distance metering with battery powered repeater node.
now all is working fine but there is something that disturbs me - the domoticz log showed same node number for the repeater and the new humidity sketch. is that ok? or i should define manual node number inside the sketch?
HUGH THANKS TO EVERYBODY
Don't know if it's the same problem but I found out the hard way that it's not possible to upload something to a Nano (or maybe all boards with USB) when BOTH the USB and the serial port (directly via TXD/RXD) are connected to a computer.
The IDE says amongst others that "programmer is not responding".
So make sure to disconnect the TXD/RXD connection from your computer before uploading something via the USB-connection.
If this is not the problem you have then I don't know what else can cause your problem...
@bart-haezeleer I have found there are problems with Rpi3 serial port.
Use a small pro-mini with a cheap serial-to-usb adapter and try with that. I think that will solve your problems. This will also allow you to add hardware signing of messages in the future which cannot be done with a nrf24l01+ directly attached to the pi.
I have an almost identical issue with me ESP MQTT gateway no longer connecting to nodes. Similar issues to start with in that it was good for a number of months then would stop, restart ok, then multiple restarts to begin working. I have now resorted to changing out the 24RF01 module and the ESP to try and locate the issue. Will let you know how I get on.