I'm going to answer me.
The problem was the bootloader, I have flashed the MYSbootloader and the WDT is working well.
Anybody know a bootloader compatible with MYS but it run quickly? because MYSbootloader spends 10seconds to start
I'm going to answer me.
The problem was the bootloader, I have flashed the MYSbootloader and the WDT is working well.
Anybody know a bootloader compatible with MYS but it run quickly? because MYSbootloader spends 10seconds to start
@rsaeful said:
if (message.type == V_LIGHT || message.type == V_DIMMER) {
I think that you must to separate the both input messages in two anidate if, like:
if (message.type == V_LIGHT) {
// Here the code for the relay
}else if ( message.type == V_DIMMER) {
// Here the code for the dimmer
}
I hope that it will be useful for you
I answer me again, I try the optiboot bootloader and it work well with mysensor library and WDT enable.
I hope that the solution is useful for more people
PD: The optiboot bootloader can be downloaded from here: https://github.com/Optiboot/optiboot/tree/master/optiboot
I agree with you, if you use have a radio in your system is because you want to control it remotely.
But I think that there is more reason:
In my case, my node have a digital input (switch on the wall) and a digital output, the digital output (relay) is manage from the Mysensor node and from the digital input. If the GW is broken, the digital output will not work till I fix or change the GW. It can pass one day or one week it depend of the job. My wife will be very hungry if she can not manage the house manually with the tradional swithes on the wall.
Any way, it's a feature that I think that could be take into account for next release. Is not very important because is not usual has not GW in the network, but I think that is a safety requirement to add in next deliveries.
Thank a lot for your support.
It's a nice forum