• @Gordon
    Hi I'm sorry for reviving this post, I can create a new one if required. I'm trying to do a similar thing by using a UUID as a way of distinguishing between two pucks to use as presence detection for home automation. I understand I could setup up something like the ibeacon service but all I need is a UUID that doesnt change for each puck. I tried creating a 128 bit UUID using

    date | md5sum
    

    and then seperating the result like you suggested above

    NRF.setAdvertising([
      [
    0x13,0x19,0x00,0x01,0x07,0x6e,0xe3,0xac,0xd3,0xc5,0x1b,0xbd,0xf7,0x28,0x83,0x6c,
    ]]);
    

    , but this didnt work and I had to hard reset to get it back programmable , did I need to add a service similar to above ?

    NRF.setServices(undefined, {
          uart : false, 
          advertise: [ 'ABCDABCD-ABCD-ABCD-ABCD-ABCDABCDABCD' ]  
    });
    

    I'm very new to this it been a bit of a learning curve today to understand how it all works.

    is this the best way to achieve what I want ?

    thanks in advance

About

Avatar for greylinux @greylinux started