From 94f15c06322279fbea02da9ac4ac04d5901037e1 Mon Sep 17 00:00:00 2001 From: Szymon Czapracki Date: Thu, 28 Nov 2024 12:54:34 +0100 Subject: [PATCH] wid/nimble/gatt: Delete custom wid for nimble GATT tests Delete custom wids for GATT tests. Deleted wids worked in improper fashion. Generic wids enable proper functionality by looking for proper characteristic with correct security restrictions. --- autopts/ptsprojects/mynewt/gatt_wid.py | 74 -------------------------- 1 file changed, 74 deletions(-) diff --git a/autopts/ptsprojects/mynewt/gatt_wid.py b/autopts/ptsprojects/mynewt/gatt_wid.py index 0288d7d453..c792b26d31 100644 --- a/autopts/ptsprojects/mynewt/gatt_wid.py +++ b/autopts/ptsprojects/mynewt/gatt_wid.py @@ -61,77 +61,3 @@ def hdl_wid_98(_: WIDParams): def hdl_wid_118(_: WIDParams): return '{0:04x}'.format(65000) - -def hdl_wid_121(_: WIDParams): - # Lookup characteristic UUID that returns Insufficient Encryption Key Size - # TODO This needs reworking - chrcs = btp.gatts_get_attrs(type_uuid='2803') - - for chrc in chrcs: - handle, perm, _ = chrc - - chrc_val = btp.gatts_get_attr_val(btp.pts_addr_type_get(), - btp.pts_addr_get(), handle) - if not chrc_val: - continue - - (_, val_len, val) = chrc_val - - hdr = '