It is relatively easy to send a command to an existing node (you can do this via serial monitor and a gateway node or even with any other mysensors node). But you did not write the setup of your system. Who will send the command (the fhem gw node)? which node will receive (another node especially for controlling the relais)? I did not get who shall do what with which ressources..
@Hausner So the problem is with the node transmitting anything to the gateway?
Post the radio messages from the serial monitor and hopefully someone can tell you what's going on..
@Dominik-Paľo Hm, it seems that there is problem in Windows 10 TP > http://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_devices/windows-10-serial-usb-problems/438de66f-7294-4c06-b4fb-89b45d005ca0?tab=question&status=AllReplies&status=AllReplies%2CAllReplies
I didn't think the voltage drop would make enough of a difference to notice, but i guess it does. I might have to research and look for a more efficient Mosfet.
Thank you @Jackpot
Don´t Works for mi. As somebody told, I think is the MQTT Gateway that no respond to requestTime.
I`m not software men but I think the sketch is correct and MQTT Gateway should answer wirt the value in "receiveTime"
You should not typ "\n"!
It means that you should press enter on your keyboard.
On Linux I saw that I have to send "\r\n" instead of "\n".
"\r\n" (Carriage return, Line feed) is the Windows return, "\n" only the Linux return.
SOLVED
I found that the older library I was using for the initial code returned a boolean for the read indicating whether or not data was still available in the register. In the newer mysensors library, I could change to use
done = !radio.isAckPayloadAvailable();
and everything is now working.
I use a cheap Chinese 5100 module together with the MQTT gateway and it is warm but have not measured any actual temperature. Works 24 hours a day (now for a couple of months). Most problems have been due to the MQTT code implementation itself . But for most "simple" sensors it runs OK with Openhab.