Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iothings:laboratoare:2025:lab2 [2025/09/28 18:05]
dan.tudose [Sparrow BLE Service]
iothings:laboratoare:2025:lab2 [2025/09/28 18:16] (current)
dan.tudose [Sparrow BLE Service]
Line 209: Line 209:
 static const char* DIS_FW_REV ​      = "​1.0.0";​ static const char* DIS_FW_REV ​      = "​1.0.0";​
 static const char* DIS_SW_REV ​      = "​1.0.0";​ static const char* DIS_SW_REV ​      = "​1.0.0";​
 +static const char* DIS_SN ​          = "​SN-000001";​
 +static const char* DIS_HW ​          = "​RevA";​
  
 /* ============================ /* ============================
Line 356: Line 358:
   gDIS->​createCharacteristic(DIS_FW_UUID, ​   NIMBLE_PROPERTY::​READ)->​setValue(DIS_FW_REV);​   gDIS->​createCharacteristic(DIS_FW_UUID, ​   NIMBLE_PROPERTY::​READ)->​setValue(DIS_FW_REV);​
   gDIS->​createCharacteristic(DIS_SW_UUID, ​   NIMBLE_PROPERTY::​READ)->​setValue(DIS_SW_REV);​   gDIS->​createCharacteristic(DIS_SW_UUID, ​   NIMBLE_PROPERTY::​READ)->​setValue(DIS_SW_REV);​
 +  gDIS->​createCharacteristic((uint16_t)0x2A25,​ NIMBLE_PROPERTY::​READ)->​setValue(DIS_SN); ​ // Serial Number
 +  gDIS->​createCharacteristic((uint16_t)0x2A27,​ NIMBLE_PROPERTY::​READ)->​setValue(DIS_HW); ​ // Hardware Rev
  
   // PnP ID (7 bytes): Vendor ID Source (1=Bluetooth,​ 2=USB), Vendor ID (LE16), Product ID (LE16), Product Version (LE16)   // PnP ID (7 bytes): Vendor ID Source (1=Bluetooth,​ 2=USB), Vendor ID (LE16), Product ID (LE16), Product Version (LE16)
iothings/laboratoare/2025/lab2.1759071905.txt.gz · Last modified: 2025/09/28 18:05 by dan.tudose
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0