May I operate my cheap Aliexpress radio module (nRF24L01+PA+LNA) with MY_RF24_PA_LEVEL RF24_PA_MAX ? Power supply is enough
In my experience this will fail.
What have you set as:
#define SLEEPTIME 100 // In seconds, how often should a measurement be made and sent to the server? The maximum delay between measurements is once every 254 seconds, but if you change "byte" to "int" further down in the code you could create more time between each loop. #define LOOPDURATION 5000 // The main loop runs every x milliseconds. This main loop starts the modem, and from then on periodically requests the password.
5000 * 1000 = 5.000.000 milliseconds between measurements = 8.33 minutes
Change the loopduration (how long a tick of the internal clock takes) to 1000, and then the SLEEPTIME variable is in normal seconds again.
Since you are getting an incoming message from the
mysgw, it seems that the route between it and the add-on it working. If you can get one message, you should be able to get all of them.
The add-on is built on top of the PyMysensors library. I don't know if it supports your beta version. Here is the code that starts it.
I believe @rmalbers has (had) the ethernet version working?
incoming message > internal > id: 0; child: 255; subtype: 14; payload: Gateway startup complete.
Well, the good news is it does look like it's working. Perhaps the problem is in your mysgw settings or your nodes? Are they on the same channel? Do they use encryption? Perhaps the issue is that you're using the beta version of MySensors and your nodes don't?
Try running the mysgw in debug mode and make sure that any data from your nodes is actually coming in.
Thread already existed
By the way, I'm currently using the RF Nano as a 'usb key gateway', or sorts. With the WebThings Gateway, a user just has to install the Candle manager add-on. Then they plug in the RF Nano and select that they want to upload gateway code from a menu. That's all they have to do.
MySensors supports Lora (RFM95), so you could have the devices talk to a controller at home.
As a controller I recommend the Mozilla WebThings Gateway Less manual tinkering with config files.
And yes, communicating with each other without a parent gateway is also perfectly possible.
How about using sensors that are more robust than ultrasonic? There are some sensors used non-contact detection of water/gas levels, for example.
if you want some GSM code, give me a shout.