You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Yes, that'd be great - I don't actually have an HM-10 to test with so I can't do this.

    Just a simple bit of code that I could stick on the BLE page would be extremely handy.

    However it looks like there's a good PDF on HM-10 iBeacons here - it looks like just sending the magic sequence of commands from the iBeacon Configuration bit should do it:

    Serial1.print("AT+RENEW\r\nAT+RESET\r\nA­T\r\n");
    setTimeout(function() {
      var major = "0x1234":
      var minor = "0xFA01":
      var name = "ESPRUINO";
      Serial1.print("AT+MARJ"+major+"\r\nAT+MI­NO"+minor+"\r\n");
      Serial1.print("AT+ADVI5\r\nAT+NAME"+name­+"\r\nAT+ADTY3\r\nAT+IBEA1\r\nAT+DELO2\r­\n");
      Serial1.print("AT+PWRM0\r\n");// Enable auto-sleep
      Serial1.print("AT+RESET\r\n");
    }, 1000); 
    

    Ideally we could come up with an HM10-iBeacon module or similar that'd handle this though. It looks like it should even be able to handle putting the Espruino + HM-10 into deep sleep modes when needed.

About

Avatar for Gordon @Gordon started