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

Method send

examples/drivers/lora-ui/main.js:47–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 this.update();
46 }
47 send() {
48 this.sent += 1;
49 this.messageSent = `hello #${this.sent}`
50 this.lora.write(this.encoder.encode(this.messageSent));
51 this.update();
52 }
53 receive(buffer) {
54 this.received += 1;
55 this.messageReceived = this.decoder.decode(buffer);

Callers 3

constructorMethod · 0.95
main.jsFile · 0.45
main.jsFile · 0.45

Calls 3

updateMethod · 0.95
writeMethod · 0.65
encodeMethod · 0.65

Tested by

no test coverage detected