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:

      <script src=""></­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(``)]);\n');">A­dvertise</button>
      <button onClick="Puck.close()">Disconnect</butto­n>

Avatar for Qbza @Qbza started