The basics of MySensors? (continued)
@marex if you use a DHT sensor you can use https://github.com/mysensors/MySensorsArduinoExamples/tree/master/examples/DhtTemperatureAndHumiditySensor
Do install the entire library though, since the DHT library is slightly modified for MySensors needs.
@mfalkvidd Yes, a DH11. Regarding the code running on the NodeMcu, could you please send me a link to an example explaining how to receive the data transmitted by the Arduino Nano? It would help me a lot if I could see an example showing what the methods "setup" , "presentation" and "loop" should contain.
@marex the links I provided at the start show how to send and receive data.
https://www.mysensors.org/about Describes how MySensors works overall.
@marex after sleeping I think I understand your question. Start by writing nothing in the setup, presentation and loop. Just use the examples as they are, following the instructions on the links I have already posted. That will get you a working gateway and working temperature nodes.
You can then add your own code for handling communication with your phone, or just use one of the available controllers which will handle that communication as well.
With MySensors it really is that simple.
Note: I am moving this discussion to a separate thread, since it really has nothing to do with the MySensors 2.0 release.