You are reading a single comment by @Qbza and its replies. Click here to read the full conversation.
  • Jean-Philippe_Rey and Gordon thank you very much for your help, it works the way i want it to now, i knew it was something with the quotes but couldn't figure it out.

    For any one else that wants to achieve something similar, this is the code:

    <html>
     <head>
     </head>
     <body>
      <script src="https://www.puck-js.com/puck.js"></­script>
      <button onClick="Puck.write('LED1.set();\n');">O­n!</button>
      <button onClick="Puck.write('LED1.reset();\n');"­>Off!</button>
      <button onClick="Puck.write('NRF.setAdvertising(­[beacon.get(`goo.gl/test123`)]);\n');">A­dvertise</button>
      
      <button onClick="Puck.close()">Disconnect</butto­n>
     
    </body>
    </html>
    
About

Avatar for Qbza @Qbza started