• ESP32 WROOM-32 Dev Kit | firmware v2.00
    Using string UUID (16bit or 128bit representation) throws an error ERROR: empty UUID type. Integers between 0 and 0xFFFF works fine.

    NRF.setServices() docs note: UUIDs can be integers between 0 and 0xFFFF, strings of the form "ABCD", or strings of the form "ABCDABCD-ABCD-ABCD-ABCD-ABCDABCDABCD"

    NRF.setServices({
      "81b38ab0-908a-4c40-8f29-b19ed4524599" : {
        "81b38ab1-908a-4c40-8f29-b19ed4524599" : {
          value : 0x01,
          readable : true,
          writable : true,
          description: "Param1",
          onWrite : e => {
            console.log("P1 got: ", e.data);
          }
        },
        "81b38ab2-908a-4c40-8f29-b19ed4524599" : {
          value : 0x02,
          readable : true,
          writable : true,
          description: "Param2",
          onWrite : e => {
            console.log("P2 got: ", e.data);
          }
        },
        "81b38ab3-908a-4c40-8f29-b19ed4524599" : {
          value : 0x03,
          readable : true,
          writable : true,
          description: "Param3",
          onWrite : e => {
            console.log("P3 got: ", e.data);
          }
        }
      }
    });
    
About

Avatar for Engineer @Engineer started