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

87
Views
Web Bluetooth log surrounding devices to MySQL database

Trying to capture ble device names and post them to a MySQL database.

Trying to capture ble device names and post them to a MySQL database. Not sure why the post function is not working? Not sure why the post function is not working?

    navigator.bluetooth.addEventListener('advertisementreceived', 
event => {
 var dev = event.device.name;
        list.innerHTML=dev;
        info.innerHTML=dev;
info.dispatchEvent(clickEvent);

$.ajax({
    url : "ajax_post.php",
    type: "POST",
     data : formData,
    success: function(data, textStatus, jqXHR)
    {
    
    },
    error: function (jqXHR, textStatus, errorThrown)
    {

    }
    });
    var formData = $("#myform").serializeArray();
var URL = $("#myform").attr("action");
$.post(URL,
    formData,
    function(data, textStatus, jqXHR)
    {
   
    }).fail(function(jqXHR, textStatus, errorThrown) 
    {

    });  
        log(i++);

});
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!