Most recent activity
-
I'm looking for a method of changing the bluetooth interfaces name in a way that persists through power cycling without modifying onInit() or setBootCode()
I have already usedNRF.setAdveritising({},{name: "<name>"});
however it does not persist through power cycling and whilst I have found a way to make that happen using the following code:
E.setBootCode('NRF.setAdvertising({},{name: "<name>"});',true);
It is still removable with reset(true).
I can't use any methods that write to the onInit() function or E.init() handler as existing data there would be erased, so my question was whether writing to the 0X2A00 service (that defines the name), can be done at a lower level either via a puck, the web IDE, or a raspberry pi using the bluepy library.
isn't there a way to set the name characteristic using lower level code?
I've experimented with python bluepy for the raspberry pi zero w that appears to read and write the 0x2A00 name characteristic, but does not actually write.
Is there an espruino equivalent?
I have tried
but that doesn't work either (despite the fact that it should if the puck conforms to bluetooth specifications.