diff --git a/README.md b/README.md index da22daedb6f2b9368df58678608dd09eb5b6eb90..524b153ca4af022326337bae5fc12d36eed91fcf 100644 --- a/README.md +++ b/README.md @@ -189,8 +189,6 @@ Serveral `*Device` methods accept a `responseHandler` parameter, which is a `pac The `sendPacket` and `sendText` methods accept a `responseHandler` as well as an `ackHandler` function as part of their parameters. (Both of these are of type `packetHandler`.) Supplying these implicitly sets `wantResponse` and `wantAck` to `true`, respectively. (Setting `wantResponse` and `wantAck` to `true` but omitting the handlers is also possible.) -The `sendEncrypted` method accepts an `ackHandler` function as part of its parameters, with the same behaviour as in `sendPacket` and `sendText`. - *Handlers* **override** *callbacks*. If a handler has been supplied to any of these methods, the handler will be called when an `ack` or `response` has been received, and the callback for that type of message *will not be called*. However, if there are both an `ackHandler` and a `responseHandler`, both of those *will* be called. So if you do this: ```ts diff --git a/readme.md b/readme.md index 1b5cfd42a9db4ae366f3a0df5278c47347552873..f7c34811903a654be00f1afd5db47b45315fcbbb 100644 --- a/readme.md +++ b/readme.md @@ -161,8 +161,6 @@ Serveral `*Device` methods accept a `responseHandler` parameter, which is a `pac The `sendPacket` and `sendText` methods accept a `responseHandler` as well as an `ackHandler` function as part of their parameters. (Both of these are of type `packetHandler`.) Supplying these implicitly sets `wantResponse` and `wantAck` to `true`, respectively. (Setting `wantResponse` and `wantAck` to `true` but omitting the handlers is also possible.) -The `sendEncrypted` method accepts an `ackHandler` function as part of its parameters, with the same behaviour as in `sendPacket` and `sendText`. - *Handlers* **override** *callbacks*. If a handler has been supplied to any of these methods, the handler will be called when an `ack` or `response` has been received, and the callback for that type of message *will not be called*. However, if there are both an `ackHandler` and a `responseHandler`, both of those *will* be called. So if you do this: ```ts