Yes, you can have messages passing multiple repeaters.
Yes, nodes can be included via repeaters.
No, you should probably not make every node a repeater, enable it for woken nodes at strategic locations.
@jeylites
It should have it's own ID.
ID = 0 is reserved for the gateway. There can be only 1 gateway for a specific frequency.
If a controller allows several hardware to connect, you can have more then 1 gateway, but tgese should each have their own frequency.
@lammietv200 If the ship is made of metal then it'll be really luckly if it works. For watertightness and fire refulations you may not be able to drill new holes in any wall/bulkhead.
The engine room most likely has a riser or other means of getting existing power and control cables in/out. So I would start looking there and thinking of a wired node as interference will be another concern in an engine room environment.
... and to give the DHT sensor a chance on reading errors to retry and not to wait until next cycle which might be very long:
for (unsigned int i = 0; i < DHT_MAX_TRIES; i ++) {
float temperature = dht.getTemperature();
if (isnan(temperature)) {
Serial.println("Failed reading temperature from DHT");
gw.wait(dht.getMinimumSamplingPeriod());
} else if (temperature != lastTemp) {
lastTemp = temperature;
if (!metric) {
temperature = dht.toFahrenheit(temperature);
}
gw.send(msgTemp.set(temperature, 1));
Serial.print("T: ");
Serial.println(temperature);
break;
}
}
Repeat the same for humidity of cause.
Start with https://www.mysensors.org/about/network and https://www.mysensors.org/download/sensor_api_20#create-repeating-nodes
If you have further questions, just post them here and we'll try to answer.
Hi @n3ro.
You have written the correct command. You dont need the incomingMessage if the sensor doesnt expect that.
Yes, atleast the nodes in strategic locations. I have some node in the outskirt of my network which is USB powered and not a repeater... no point how i see it.
Dont use delay() or block code in any other way if you are using it as a repeater.
@skywatch @mfalkvidd Thank you for your comments.
I am using Moteino R4 and RFM69 connected to hardware SPI pins. I tried the same pin with softSPI, but I could not get success.
Now I have altered the ADE7763 Arduino library to update SPI settings on every call. And added code to update the only flag on ADE7763 interrupt(like we have in RFM69_new library). Seems all look somewhat ok.
I think for RFM69 we use a default clock speed. for ADE7763: SPI_CLOCK_DIV4
Are you using pull up resistors on the CS lines to each device - that might be worth a try too....
Yes, I have