• Hi, can anyone tell me how to implement the RTS/CTS between hm-10 and espruino.
    I want to let espruino sleep and only wake up when there is a RX/TX.

    Thanks.

  • Hi - are there RTS/CTS pins on the HM-10? If so, just add some code like:

    setWatch(function(e) {
      digitalWrite(CTS, e.state);
      setDeepSleep(!e.state);
    }, RTS, {edge:"both", repeat:true});
    
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Bluetooth, Espruino pico and RTS/CTS implementation

Posted by Avatar for user62112 @user62112

Actions