some problem in sensor + repeater !
-
@Reza
Instead of asking people in the forum at every step you take, you could use the trial and error method.BR,
Boozz
-
@boozz
:) ok but if it is possible guidance me just This time
this is true ?
sleep(SLEEP_TIME); ~~> wait(SLEEP_TIME); ?
thank you -
@Reza
@boozz has already answered you how to. You should try, that does not hurt, and you may be happy by the result. You don't want a sleeping repeater? better a waiting repeater!
That said i would not use the wait, it's possible to code this quicker. But it's a little bit more advanced.
I advice you to read some reference about Arduino etc... and try. always try or you don't learn anything!
An howto which could be useful for you, perhaps later, is the blink led without delay from Arduino Reference for instance. And lot of other things. That's not always easy to write code for others, can take time or not same config. and others don't learn then.. -
@Reza
@boozz has already answered you how to. You should try, that does not hurt, and you may be happy by the result. You don't want a sleeping repeater? better a waiting repeater!
That said i would not use the wait, it's possible to code this quicker. But it's a little bit more advanced.
I advice you to read some reference about Arduino etc... and try. always try or you don't learn anything!
An howto which could be useful for you, perhaps later, is the blink led without delay from Arduino Reference for instance. And lot of other things. That's not always easy to write code for others, can take time or not same config. and others don't learn then..@scalz said:
has already answered you how to. You should try, that does not hurt, and you may be happy by the result. You don't want a sleeping repeater? better a waiting repeater!
That said i would not use the wait, it's possible to code this quicker. But it's a little bit more advanced.
I advice you to read some reference about Arduino etc... and try. always try or you don't learn anything!
An howto which could be useful for you, perhaps later, is the blink led without delay from Arduino Reference for instance. And lot of other things. That's not always easy to write code for others, can take time or not same config. and others don't learn then..hi my friend , i know this but about this issue , i need this quickly and I don't have time for begin in arduino and full programming :(
-
Have you tried ??
well, about needing quickly, without learning... you're perhaps misunderstanding a bit things.. imho mysensors is great, open, dynamic community which try to make things easier for noobs. Sure that's very attractive, but don't forget you're in arduino/dev/mcu world...if you don't want to read&learn a minimum, you will be stuck in the examples sketch folders... -
Have you tried ??
well, about needing quickly, without learning... you're perhaps misunderstanding a bit things.. imho mysensors is great, open, dynamic community which try to make things easier for noobs. Sure that's very attractive, but don't forget you're in arduino/dev/mcu world...if you don't want to read&learn a minimum, you will be stuck in the examples sketch folders...@scalz said:
Have you tried ??
well, about needing quickly, without learning... you're perhaps misunderstanding a bit things.. imho mysensors is great, open, dynamic community which try to make things easier for noobs. Sure that's very attractive, but don't forget you're in arduino/dev/mcu world...if you don't want to read&learn a minimum, you will be stuck in the examples sketch folders...
i want try to learn but not now ! now i need this quickly :( so after this i try to learn step by step. . . -
okay but have you tried wait instead of sleep?? we still don't know..
-
@Reza
@boozz has already answered you how to. You should try, that does not hurt, and you may be happy by the result. You don't want a sleeping repeater? better a waiting repeater!
That said i would not use the wait, it's possible to code this quicker. But it's a little bit more advanced.
I advice you to read some reference about Arduino etc... and try. always try or you don't learn anything!
An howto which could be useful for you, perhaps later, is the blink led without delay from Arduino Reference for instance. And lot of other things. That's not always easy to write code for others, can take time or not same config. and others don't learn then..No fear to have! A sleep or wait won't burn your node.
I told you above:
@scalz said:
You don't want a sleeping repeater? better a waiting repeater!
what do you think ;) Does a repeater should sleep?? If so, how could he listens and repeat? So.. the repeater can't sleep! you would prefer to use wait, so it listens/wait and repeat.
I hope this is okay. If you have a problem then why not, but imho your issue is solved. -
No fear to have! A sleep or wait won't burn your node.
I told you above:
@scalz said:
You don't want a sleeping repeater? better a waiting repeater!
what do you think ;) Does a repeater should sleep?? If so, how could he listens and repeat? So.. the repeater can't sleep! you would prefer to use wait, so it listens/wait and repeat.
I hope this is okay. If you have a problem then why not, but imho your issue is solved.