remove endian-swap on major & minor for iBeacon - in theroy to match HM10 implementation?

This commit is contained in:
Simon Hailes 2021-04-08 19:08:15 +01:00
parent 2f3a3264dc
commit 66ec23d399
1 changed files with 4 additions and 2 deletions

View File

@ -233,8 +233,10 @@ int advertismentCallback(BLE_ESP32::ble_advertisment_t *pStruct)
memcpy(UUID,oBeacon.getProximityUUID().getNative()->u128.value,16);
ESP32BLE_ReverseStr(UUID,16);
uint16_t Major = ENDIAN_CHANGE_U16(oBeacon.getMajor());
uint16_t Minor = ENDIAN_CHANGE_U16(oBeacon.getMinor());
// uint16_t Major = ENDIAN_CHANGE_U16(oBeacon.getMajor());
// uint16_t Minor = ENDIAN_CHANGE_U16(oBeacon.getMinor());
uint16_t Major = oBeacon.getMajor();
uint16_t Minor = oBeacon.getMinor();
uint8_t PWR = oBeacon.getSignalPower();
DumpHex((const unsigned char*)&UUID,16,ib.UID);