This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android/iOS Application to display sensors data(temperature, humidity, pressure and etc) from adv packet

I would like to advertise some sensor data (temperature, humidity, pressure, co2, voc and other) by BLE advertising packet without any connection. I know, I can put it data to manufacture record(or Service data with Environmental Sensing uuids) and use my application to display it. But, at the moment I do not want to create an application and I would like to use readymade advertising format and android\ios application to display my data.

Could you recommend some applications and data format\structure for the display advertising data?

Parents Reply Children
  • Bluetooth SIG provides "Service data" and it seems the next advertising data can be valid and it corresponds to the specification. I thought any application can parse it.

        adv_data[byte_n++] = 0x11;             //AD length
        adv_data[byte_n++] = 0x16;             //AD type
        adv_data[byte_n++] = 0x1A;             //Service data UUID 0x181A
        adv_data[byte_n++] = 0x18;
        adv_data[byte_n++] = 0x6E;             //Temperature UUID 0x2A6E
        adv_data[byte_n++] = 0x2A;
        adv_data[byte_n++] = temperature >> 8; //temperature in 0.01 °C unit
        adv_data[byte_n++] = temperature;
        adv_data[byte_n++] = 0x6F;             //Humidity UUID 0x2A6F
        adv_data[byte_n++] = 0x2A;
        adv_data[byte_n++] = humid >> 8;       //Humidity in 0.01 %
        adv_data[byte_n++] = humid;
        adv_data[byte_n++] = 0x6D;             //Pressure UUID 0x2A6D
        adv_data[byte_n++] = 0x2A;
        adv_data[byte_n++] = pressure >> 24;   //Pressure in 0.1 Pa unit
        adv_data[byte_n++] = pressure >> 16;
        adv_data[byte_n++] = pressure >> 8;
        adv_data[byte_n++] = pressure;

    Anyway, thanks! Seems you need own application)

Related