Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

66
Views
Escribiendo en una característica GATT con un UUID personalizado usando Web BLE API

Tengo algunos problemas para encontrar la sintaxis sobre cómo escribir en una característica personalizada. Aquí está mi código. No tengo idea de qué hacer a continuación. Estoy tratando de escribir a a0521000-2a63-479e-9d0a-09dfa7c8fd98 con el siguiente comando (en hexadecimal): 00 01 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 00 00 00

Gracias por cualquier ayuda.

 <script> document.querySelector(".unlock").addEventListener("click", function () { navigator.bluetooth .requestDevice({ filters: [{ name: "IL8A2" }], optionalServices: ["a0521000-2a63-479e-9d0a-09dfa7c8fd98"], }) .then((device) => { console.log("> Name: " + device.name); console.log("> Id: " + device.id); console.log("> Connected: " + device.gatt.connected); }) .then((server) => server.getPrimaryService("a0521000-2a63-479e-9d0a-09dfa7c8fd98") ) .then((service) => service.getCharacteristic("a0521001-2a63-479e-9d0a-09dfa7c8fd98") ) NOW WHAT???? }) .catch((error) => { console.log("Argh! " + error); }); }); </script>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!