-
• #2
I think you might need to specify a length:
NRF.setServices({ 0xEDCB : { 0xBA98 : { maxLen : 20, // <- this line here description: "MyCharact", writable : true, onWrite : function(evt) { eventData = evt.data; } } } }, { advertise: [ 'EDCB' ]});
That way you can tell it that it can take more data.
-
• #3
Perfect, many thanks.
This Pixl program advertises a service, treats "onWrite" queries, and write the received character in a loop, every second:
Apparently, it can receive only one character. When sending byte arrays of more than one byte with nRF Connect or BLEScanner, nothing happens. However, when sending one byte only, it is received and correctly displayed.
What do you think, please ?