Sending custom messages from a Raspberry Pi Gateway to Arduino node
Jurg last edited by
For my school project I have a Raspberry Pi and a Arduino Uno both connected with a NRF24 module. The Raspberry Pi is used as a Gateway. I am able to send signed and encrypted messages from the Arduino to the Raspberry Pi, but how can I send a custom message from my Raspberry Pi to my Arduino?
Hi @jurg, welcome to the forum!
Easiest way is to issue the messages from your controller. If you don't have a controller, look at https://www.mysensors.org/controller
An alternative is to modify the raspberry pi gateway sketch and add a call to send(). Documentation: https://www.mysensors.org/download/sensor_api_20#sending-data
monte last edited by
If you compile Mysensors for Raspberry Pi as an ethernet gateway, you will be able to send commands to a socket on an IP of your Raspberry. You can use netcat command, or a python script, as described here: https://forum.mysensors.org/post/88439
This way, you won't need any controller software, if you are not planning anything big.