()
| 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); |