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

Method appearance

modules/network/ble/btutils.js:371–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369 return this.#buffer;
370 }
371 get appearance() {
372 const index = this.findIndex(GAP.ADType.APPEARANCE);
373 if (-1 != index) {
374 let start = index + 2;
375 const data = this.#data;
376 return (data[start] | (data[start+1] << 8));
377 }
378 }
379 get completeName() {
380 const index = this.findIndex(GAP.ADType.COMPLETE_LOCAL_NAME);
381 if (-1 != index) {

Callers

nothing calls this directly

Calls 1

findIndexMethod · 0.95

Tested by

no test coverage detected