gw.powerUp(); deprecated?



  • Hi all,

    I have a sketch with gw.powerUp(); and gw.powerDown(); which used to compile and now it does not. Removing the above calls and it compiles OK.

    So have these commands been removed from MySensors 1.5 ?

    Thanks.


  • Admin

    That worked previously because the MySensors class inherited RF24.

    In 1.5 you can initialise a radio driver which has a sleep method that calls powerDown() (in the RF24 case).

    The radio automatically wakes up when sending a new message.


 

346
Online

7.8k
Users

8.7k
Topics

93.0k
Posts