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.


Log in to reply
 

Suggested Topics

16
Online

11.4k
Users

11.1k
Topics

112.7k
Posts