Skip to content

Commit 157dd8c

Browse files
authored
Fix Remote AT command options (#117)
* Fix Remote AT command options May be I am missing something, but the specs says that "Send the remote command securely" is Bit 4 [0x10]. * Fix tests
1 parent a4125c6 commit 157dd8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def test_remote_at_cmd(app, device):
502502
assert app._api._remote_at_command.call_count == 1
503503
assert app._api._remote_at_command.call_args[0][0] is dev.ieee
504504
assert app._api._remote_at_command.call_args[0][1] == s.nwk
505-
assert app._api._remote_at_command.call_args[0][2] == 0x22
505+
assert app._api._remote_at_command.call_args[0][2] == 0x12
506506
assert app._api._remote_at_command.call_args[0][3] == s.cmd
507507
assert app._api._remote_at_command.call_args[0][4] == s.data
508508

zigpy_xbee/zigbee/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def remote_at_command(
254254
if apply_changes:
255255
options |= 0x02
256256
if encryption:
257-
options |= 0x20
257+
options |= 0x10
258258
dev = self.get_device(nwk=nwk)
259259
return self._api._remote_at_command(dev.ieee, nwk, options, cmd_name, *args)
260260

0 commit comments

Comments
 (0)