-
Notifications
You must be signed in to change notification settings - Fork 711
Open
Description
I'm currently using 0.49 of ESP32 Arduino and have gotten iBeacon working on my ESP32 board.
The UUID value that I am getting is in reversed order when scanned using the Locate app on iOS and the BluetoothLE Scanner on Android.
Some debugging has led me to a sscanf line of code in the file BLEUUID.cpp:
sscanf(value.c_str(), "%2x%2x%2x%2x-%2x%2x-%2x%2x-%2x%2x-%2x%2x%2x%2x%2x%2x", &vals[15], &vals[14], &vals[13], &vals[12], &vals[11], &vals[10], &vals[9], &vals[8], &vals[7], &vals[6], &vals[5], &vals[4], &vals[3], &vals[2], &vals[1], &vals[0] );
When I reverse the order of the offsets of the variable vals (instead of 15 to 0, I made it 0 to 15), the UUID on my ESP32 source code becomes the same as the one being read by the two mobile apps.
31337Ghost, jhud and WJohnnyW
Metadata
Metadata
Assignees
Labels
No labels