From 9c21a330e8b031df1a5d3939b330718e5cb24632 Mon Sep 17 00:00:00 2001 From: saji Date: Wed, 3 May 2023 11:29:49 -0500 Subject: [PATCH] added queue+query at command test --- internal/xbee/at_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/xbee/at_test.go b/internal/xbee/at_test.go index 85749f3..269e30f 100644 --- a/internal/xbee/at_test.go +++ b/internal/xbee/at_test.go @@ -97,6 +97,16 @@ func Test_encodeATCommand(t *testing.T) { }, want: []byte{0x09, 0x53, 0x42, 0x44, 0x07}, }, + { + name: "Queue Query AT Command", + args: args{ + cmd: [2]rune{'T', 'P'}, + idx: 0x17, + p: nil, + queued: true, + }, + want: []byte{0x09, 0x17, 0x54, 0x50}, + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {