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

71
Views
Manejar solicitudes de balizas BLE

Hola a todos. Estoy recibiendo/publicando datos de la puerta de enlace bluetooth. La puerta de enlace envía datos (MAC de baliza) x veces en un segundo. ¿Es esta la mejor manera de manejar la solicitud? Quiero guardar MAC únicos y, en algún intervalo, enviar datos a algún servidor.

 app.post('/api', function(req, res) { const body = req.body; const objct = body.obj; let gtw = body.gmac; for (var prop in objct) { beaconi.add(objct[prop].dmac); } res.set('Content-Type', 'text/plain'); res.send('Data was received'); }) setInterval(() => { axios .post('https://www.domain.app/beacon/api/getData.php', { data: { tagovi: Array.from(beaconi) }, }) .then(res => { console.log(`statusText: ${res.statusText}`); console.log('BIKONI', Array.from(beaconi)); beaconi.clear(); }) }, 15000); app.listen(8080, function(err) { if (err) { throw err } console.log('Server at 8080'); })
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!