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');">On!</button>
      <button onClick="Puck.write('LED1.reset();\n');">Off!</button>
      <button onClick="Puck.write('NRF.setAdvertising([beacon.get(`goo.gl/test123`)]);\n');">Advertise</button>
      
      <button onClick="Puck.close()">Disconnect</button>
     
    </body>
    </html>
    
About

Avatar for Qbza @Qbza started