Pregunta

device broadcast a advertisement packet consist of byte array in onLeScan method which contain device name and current temperature (know from the ios app) but how to convert byte array which contain ble device name and temperature. i didn't find any format of broadcast data please any body know please tell me. in ios it easy nsdictionary format ontain key and value which contain name and temperature in hex format. i just try to convert byte array in string i get name but other are garbage character are printed so how did i extract ble name and temperature value from byte array

¿Fue útil?

Solución

I figured I should make this a regular answer...

The data portion of an LE advertising packet is in the EIR data format. Do search for "bluetooth le extended inquiry response data format" or look at the core 4.0 bluetooth specs pg 1690.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top