Author Topic: Custom UUID  (Read 1700 times)

shutterflypro

  • RFduino Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Custom UUID
« on: December 08, 2014, 05:35:50 PM »
Can anyone tell me how I can convert my custom UUID strings to the HEX representation that is used in the custom settings.ino for iBeacon


maverik0106

  • RFduino Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: Custom UUID
« Reply #1 on: December 17, 2014, 07:08:02 PM »

notsolinear

  • RFduino Jr. Member
  • **
  • Posts: 52
  • Karma: +3/-0
    • View Profile
Re: Custom UUID
« Reply #2 on: January 05, 2015, 09:42:41 PM »
I'm not sure what form they expect if you use RFduino's api for setting a customUUID, but I figured out that if you're manually creating your own advertising packet then you use the UUID string characters, two at a time, starting from the end.

e.g., from uuidgen in OS X I got the string "abece8fd-afde-40b4-b1b1-632adfb84d5e" and in my advertising packet the array of bytes is (look for '5E' at the ends for a starting point):

0x5E,
    0x4D,
    0xB8,
    0xDF,
    0x2A,
    0x63,
    0xB1,
    0xB1,
    0xB4,
    0x40,
    0xDE,
    0xAF,
    0xFD,
    0xE8,
    0xEC,
    0xAB

 

anything