MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / isEncrypted

Method isEncrypted

tools/bles2gatt.js:972–975  ·  view source on GitHub ↗
(characteristic)

Source from the content-addressed store, hash-verified

970 return perms.join('|');
971 }
972 isEncrypted(characteristic) {
973 let encrypted = (-1 != characteristic.permissions.indexOf("readEncrypted") || -1 != characteristic.permissions.indexOf("writeEncrypted"));
974 return encrypted ? 1 : 0;
975 }
976};
977
978class GeckoGATTFile extends GATTFile {

Callers 1

generateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected