Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TransportPayloadCapability flag for GetConnectedDevices() API in ChipDeviceCtrl.py and Script bindings #34450

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

pidarped
Copy link
Contributor

Add indicator flag for large payloads to GetConnectedDevices() API and bubble up the flag to the wrapper IM Python APIs.

Add python script binding methods required for upcoming TCP/LargePayload tests
--to check if session allows large payload.
--to close the underlying TCP connection.
--to check if the session is active.

Copy link

github-actions bot commented Jul 23, 2024

PR #34450: Size comparison from d666567 to cea4978

Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section d6665673 cea4978 change % change
bl602 lighting-app bl602 FLASH 1272020 1272020 0 0.0
RAM 95392 95392 0 0.0
bl602+mfd FLASH 1286278 1286278 0 0.0
RAM 95536 95536 0 0.0
bl602+rpc FLASH 1310988 1310988 0 0.0
RAM 103816 103816 0 0.0
bl702 lighting-app bl702 FLASH 1092926 1092926 0 0.0
RAM 15229 15229 0 0.0
bl702+mfd FLASH 1103876 1103876 0 0.0
RAM 15381 15381 0 0.0
bl702+rpc FLASH 1182992 1182992 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 876226 876226 0 0.0
RAM 27348 27348 0 0.0
bl706-wifi FLASH 1128408 1128408 0 0.0
RAM 14681 14681 0 0.0
bl702l lighting-app bl702l FLASH 1080068 1080068 0 0.0
RAM 21800 21800 0 0.0
bl702l+mfd FLASH 1091074 1091074 0 0.0
RAM 21960 21960 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798884 798884 0 0.0
RAM 109236 109236 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816636 816636 0 0.0
RAM 117028 117028 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808492 808492 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761092 761092 0 0.0
RAM 105400 105400 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746876 746876 0 0.0
RAM 105632 105632 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606630 606630 0 0.0
RAM 204572 204572 0 0.0
lock CC3235SF_LAUNCHXL FLASH 651970 651970 0 0.0
RAM 204844 204844 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 668025 668025 0 0.0
RAM 77700 77700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 687877 687877 0 0.0
RAM 80340 80340 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 687877 687877 0 0.0
RAM 80340 80340 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 644813 644813 0 0.0
RAM 72768 72768 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609561 609561 0 0.0
RAM 70876 70876 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629197 629197 0 0.0
RAM 73420 73420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629197 629197 0 0.0
RAM 73420 73420 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625273 625273 0 0.0
RAM 73892 73892 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644981 644981 0 0.0
RAM 76436 76436 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644981 644981 0 0.0
RAM 76436 76436 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593637 593637 0 0.0
RAM 67844 67844 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613489 613489 0 0.0
RAM 70484 70484 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613489 613489 0 0.0
RAM 70484 70484 0 0.0
efr32 lighting-app BRD4187C FLASH 926112 926112 0 0.0
RAM 134532 134532 0 0.0
lock-app BRD4338a FLASH 734524 734516 -8 -0.0
RAM 208000 208000 0 0.0
window-app BRD4187C FLASH 1014604 1014604 0 0.0
RAM 126644 126644 0 0.0
esp32 all-clusters-app c3devkit DRAM 90932 90932 0 0.0
FLASH 1471314 1471314 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117404 117404 0 0.0
FLASH 1540315 1540315 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4624 4624 0 0.0
FLASH 2706913 2706913 0 0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5392 5392 0 0.0
FLASH 5835478 5835478 0 0.0
RAM 494688 494688 0 0.0
all-clusters-minimal-app debug unknown 5304 5304 0 0.0
FLASH 5295130 5295130 0 0.0
RAM 235696 235696 0 0.0
bridge-app debug unknown 5288 5288 0 0.0
FLASH 4694462 4694462 0 0.0
RAM 212960 212960 0 0.0
chip-tool debug unknown 5776 5776 0 0.0
FLASH 12296496 12296496 0 0.0
RAM 548818 548818 0 0.0
chip-tool-ipv6only arm64 unknown 20168 20168 0 0.0
FLASH 11002556 11002556 0 0.0
RAM 598464 598464 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 1131456 1131456 0 0.0
RAM 545658 545658 0 0.0
fabric-bridge-app debug unknown 4560 4560 0 0.0
FLASH 4448640 4448640 0 0.0
RAM 198992 198992 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5618529 5618529 0 0.0
RAM 224240 224240 0 0.0
lock-app debug unknown 5224 5224 0 0.0
FLASH 4752912 4752912 0 0.0
RAM 200672 200672 0 0.0
ota-provider-app debug unknown 4600 4600 0 0.0
FLASH 4397300 4397300 0 0.0
RAM 194848 194848 0 0.0
ota-requestor-app debug unknown 4536 4536 0 0.0
FLASH 4535114 4535114 0 0.0
RAM 199384 199384 0 0.0
shell debug unknown 4168 4168 0 0.0
FLASH 2979645 2979645 0 0.0
RAM 153736 153736 0 0.0
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4256884 4256884 0 0.0
RAM 236336 236336 0 0.0
tv-app debug unknown 5496 5496 0 0.0
FLASH 5893615 5893615 0 0.0
RAM 342080 342080 0 0.0
tv-casting-app debug unknown 5160 5160 0 0.0
FLASH 10431405 10431405 0 0.0
RAM 403080 403080 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503276 1503276 0 0.0
RAM 226728 226728 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 883308 883308 0 0.0
RAM 142311 142311 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 953548 953548 0 0.0
RAM 140739 140739 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 828160 828160 0 0.0
RAM 141179 141179 0 0.0
nxp contact k32w0+release FLASH 576100 576100 0 0.0
RAM 70096 70096 0 0.0
k32w1+release FLASH 591664 591664 0 0.0
RAM 74144 74144 0 0.0
light k32w0+release FLASH 610416 610416 0 0.0
RAM 69564 69564 0 0.0
k32w1+release FLASH 675192 675192 0 0.0
RAM 82880 82880 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1611636 1611636 0 0.0
RAM 209736 209736 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1531956 1531956 0 0.0
RAM 206544 206544 0 0.0
light cy8ckit_062s2_43012 FLASH 1458812 1458812 0 0.0
RAM 199808 199808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459468 1459468 0 0.0
RAM 224336 224336 0 0.0
qpg lighting-app qpg6105+debug FLASH 651740 651740 0 0.0
RAM 104644 104644 0 0.0
lock-app qpg6105+debug FLASH 612144 612144 0 0.0
RAM 99312 99312 0 0.0
stm32 light STM32WB5MM-DK FLASH 474064 474064 0 0.0
RAM 144268 144268 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 633102 633102 0 0.0
RAM 50576 50576 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 659054 659054 0 0.0
RAM 148488 148488 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 779246 779246 0 0.0
RAM 113260 113260 0 0.0
bridge-app tlsr9258a FLASH 676078 676078 0 0.0
RAM 95352 95352 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 634686 634686 0 0.0
RAM 50620 50620 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720554 720554 0 0.0
RAM 77196 77196 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 614130 614130 0 0.0
RAM 144684 144684 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 801934 801934 0 0.0
RAM 103088 103088 0 0.0
lock-app-dfu tlsr9528a FLASH 666510 666510 0 0.0
RAM 69900 69900 0 0.0
ota-requestor-app tlsr9258a FLASH 695436 695436 0 0.0
RAM 95076 95076 0 0.0
pump-app tlsr9518adk80d FLASH 616942 616942 0 0.0
RAM 57000 57000 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607352 607352 0 0.0
RAM 56800 56800 0 0.0
shell tlsr9518adk80d FLASH 466520 466520 0 0.0
RAM 72488 72488 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 641304 641304 0 0.0
RAM 52248 52248 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651178 651178 0 0.0
RAM 60436 60436 0 0.0
thermostat tlsr9518adk80d FLASH 626242 626242 0 0.0
RAM 57132 57132 0 0.0
window-covering tlsr9118bdk40d FLASH 519448 519448 0 0.0
RAM 97848 97848 0 0.0
tizen all-clusters-app arm unknown 1584 1584 0 0.0
FLASH 1641256 1641256 0 0.0
RAM 48708 48708 0 0.0
chip-tool-ubsan arm unknown 2384 2384 0 0.0
FLASH 16310718 16310718 0 0.0
RAM 7168520 7168520 0 0.0

@cecille cecille requested a review from agners July 23, 2024 12:15
Copy link
Contributor

@cecille cecille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me. @agners - would you mind taking a look to make sure this is OK with your use cases?

src/controller/python/chip/ChipDeviceCtrl.py Show resolved Hide resolved
up the flag to the wrapper IM Python APIs.

Add python script binding methods for LargePayload tests
--to check if session allows large payload.
--to close the underlying TCP connection.
--to check if the session is active.
@pidarped pidarped force-pushed the PythonBindingsForTCP branch from cea4978 to 246e969 Compare July 25, 2024 01:13
@github-actions github-actions bot added the tests label Jul 25, 2024
@pidarped pidarped requested a review from agners July 25, 2024 01:19
Copy link

github-actions bot commented Jul 25, 2024

PR #34450: Size comparison from 6a98248 to 246e969

Full report (82 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 6a98248 246e969 change % change
bl602 lighting-app bl602 FLASH 1271964 1271964 0 0.0
RAM 95384 95384 0 0.0
bl602+mfd FLASH 1286222 1286222 0 0.0
RAM 95528 95528 0 0.0
bl602+rpc FLASH 1310932 1310932 0 0.0
RAM 103808 103808 0 0.0
bl702 lighting-app bl702 FLASH 1092858 1092858 0 0.0
RAM 15245 15245 0 0.0
bl702+mfd FLASH 1103552 1103552 0 0.0
RAM 15397 15397 0 0.0
bl702+rpc FLASH 1182924 1182924 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 876158 876158 0 0.0
RAM 27348 27348 0 0.0
bl706-wifi FLASH 1128342 1128342 0 0.0
RAM 14681 14681 0 0.0
bl702l lighting-app bl702l FLASH 1079756 1079756 0 0.0
RAM 21800 21800 0 0.0
bl702l+mfd FLASH 1091018 1091018 0 0.0
RAM 21960 21960 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798924 798924 0 0.0
RAM 109236 109236 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816684 816684 0 0.0
RAM 117020 117020 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808516 808516 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761132 761132 0 0.0
RAM 105408 105408 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746916 746916 0 0.0
RAM 105632 105632 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606494 606494 0 0.0
RAM 204564 204564 0 0.0
lock CC3235SF_LAUNCHXL FLASH 652026 652026 0 0.0
RAM 204836 204836 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 668041 668041 0 0.0
RAM 77700 77700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 687893 687893 0 0.0
RAM 80340 80340 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 687893 687893 0 0.0
RAM 80340 80340 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 644829 644829 0 0.0
RAM 72768 72768 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609585 609585 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629221 629221 0 0.0
RAM 73428 73428 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629221 629221 0 0.0
RAM 73428 73428 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625289 625289 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644997 644997 0 0.0
RAM 76444 76444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644997 644997 0 0.0
RAM 76444 76444 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593509 593509 0 0.0
RAM 67852 67852 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613361 613361 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613361 613361 0 0.0
RAM 70492 70492 0 0.0
efr32 lighting-app BRD4187C FLASH 926120 926120 0 0.0
RAM 134528 134528 0 0.0
lock-app BRD4338a FLASH 734524 734516 -8 -0.0
RAM 208004 208004 0 0.0
window-app BRD4187C FLASH 1014604 1014604 0 0.0
RAM 126648 126648 0 0.0
esp32 all-clusters-app c3devkit DRAM 90948 90948 0 0.0
FLASH 1471086 1471086 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117428 117428 0 0.0
FLASH 1540211 1540211 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2710279 2710279 0 0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5400 5400 0 0.0
FLASH 5838628 5838628 0 0.0
RAM 494560 494560 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5298426 5298426 0 0.0
RAM 235728 235728 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4699178 4699178 0 0.0
RAM 212992 212992 0 0.0
chip-tool debug unknown 5784 5784 0 0.0
FLASH 12279306 12279306 0 0.0
RAM 548050 548050 0 0.0
chip-tool-ipv6only arm64 unknown 20128 20128 0 0.0
FLASH 10986972 10986972 0 0.0
RAM 597680 597680 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11299679 11299679 0 0.0
RAM 544890 544890 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4453412 4453412 0 0.0
RAM 199024 199024 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5623249 5623249 0 0.0
RAM 224272 224272 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4757630 4757630 0 0.0
RAM 200704 200704 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4402124 4402124 0 0.0
RAM 194880 194880 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4539938 4539938 0 0.0
RAM 199416 199416 0 0.0
shell debug unknown 4168 4168 0 0.0
FLASH 2982829 2982829 0 0.0
RAM 153704 153704 0 0.0
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4259572 4259572 0 0.0
RAM 236360 236360 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 5974781 5974781 0 0.0
RAM 573184 573184 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10490877 10490877 0 0.0
RAM 633352 633352 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503276 1503276 0 0.0
RAM 226720 226720 0 0.0
nxp contact k32w0+release FLASH 576100 576100 0 0.0
RAM 70104 70104 0 0.0
k32w1+release FLASH 591672 591672 0 0.0
RAM 74144 74144 0 0.0
light k32w0+release FLASH 610432 610432 0 0.0
RAM 69564 69564 0 0.0
k32w1+release FLASH 675216 675216 0 0.0
RAM 82872 82872 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1611476 1611476 0 0.0
RAM 209728 209728 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1531828 1531828 0 0.0
RAM 206544 206544 0 0.0
light cy8ckit_062s2_43012 FLASH 1458860 1458860 0 0.0
RAM 199808 199808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459500 1459500 0 0.0
RAM 224328 224328 0 0.0
qpg lighting-app qpg6105+debug FLASH 651748 651748 0 0.0
RAM 104636 104636 0 0.0
lock-app qpg6105+debug FLASH 612136 612136 0 0.0
RAM 99320 99320 0 0.0
stm32 light STM32WB5MM-DK FLASH 474144 474144 0 0.0
RAM 144260 144260 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 633112 633112 0 0.0
RAM 50576 50576 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 658786 658786 0 0.0
RAM 148480 148480 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 779012 779012 0 0.0
RAM 113260 113260 0 0.0
bridge-app tlsr9258a FLASH 676032 676032 0 0.0
RAM 95344 95344 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 634696 634696 0 0.0
RAM 50620 50620 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720568 720568 0 0.0
RAM 77196 77196 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 614066 614066 0 0.0
RAM 144684 144684 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 801870 801870 0 0.0
RAM 103088 103088 0 0.0
lock-app-dfu tlsr9528a FLASH 666524 666524 0 0.0
RAM 69900 69900 0 0.0
ota-requestor-app tlsr9258a FLASH 695394 695394 0 0.0
RAM 95068 95068 0 0.0
pump-app tlsr9518adk80d FLASH 616960 616960 0 0.0
RAM 57000 57000 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607370 607370 0 0.0
RAM 56800 56800 0 0.0
shell tlsr9518adk80d FLASH 466520 466520 0 0.0
RAM 72488 72488 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 641314 641314 0 0.0
RAM 52248 52248 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651192 651192 0 0.0
RAM 60436 60436 0 0.0
thermostat tlsr9518adk80d FLASH 626078 626078 0 0.0
RAM 57124 57124 0 0.0
window-covering tlsr9118bdk40d FLASH 519462 519462 0 0.0
RAM 97856 97856 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1640516 1640516 0 0.0
RAM 48708 48708 0 0.0
chip-tool-ubsan arm unknown 2388 2388 0 0.0
FLASH 16290886 16290886 0 0.0
RAM 7153232 7153232 0 0.0

@pidarped pidarped requested a review from aronrosenberg July 25, 2024 18:48
@mergify mergify bot merged commit b74057e into project-chip:master Jul 25, 2024
69 checks passed
# class TransportPayloadCapability(ctypes.c_int):


class TransportPayloadCapability(ctypes.c_int):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the direct equivalent of a C++ enum? If so please documenting that.
Other than that it would be good to use either "LARGE" or "TCP" consistently.
Also should this be a bit mask with one bit each for MRP and TCP?

PeterC1965 pushed a commit to PeterC1965/connectedhomeip that referenced this pull request Jul 26, 2024
project-chip#34450)

up the flag to the wrapper IM Python APIs.

Add python script binding methods for LargePayload tests
--to check if session allows large payload.
--to close the underlying TCP connection.
--to check if the session is active.
mergify bot pushed a commit that referenced this pull request Jul 29, 2024
* Add WHM to the all clusters app

* Restyled by whitespace

* Restyled by clang-format

* Restyled by gn

* Fix CI test

* Address review comments from JamesH

* Address review comments from JamesH

* Address review comments from JamesH

* Restyled by clang-format

* Get tests passing again

* Restyled by clang-format

* Declare some global items for future testing (#34509)

Co-authored-by: Andrei Litvin <[email protected]>

* [LevelControl] Implemented the Q quality logic for the CurrentLevel a… (#34488)

* Implemented the Quiete reporting quality logic for the CurrentLevel and RemainingTime attributes

* Restyled by clang-format

* use c++ struct rather than c struct format

* add cluster-building-blocks to the data model public dep

---------

Co-authored-by: Restyled.io <[email protected]>

* Revert thermostat stuff breaking tot (#34518)

* Revert "update tests and thermostat server cluster for new constraints for LocalTemperatureCalibration and MinSetpointDeadBand (#34474)"

This reverts commit 335ac96.

* Revert "update constraints for LocalTemperatureCalibration and MinSetpointDeadBand attributes (#34473)"

This reverts commit 21a5bd6.

* [Telink] Update Docker image (Zephyr update) (#34503)

* Add TransportPayloadCapability flag for GetConnectedDevices and bubble (#34450)

up the flag to the wrapper IM Python APIs.

Add python script binding methods for LargePayload tests
--to check if session allows large payload.
--to close the underlying TCP connection.
--to check if the session is active.

* Remove no-longer-used MTRDevice logic for truncating data version lists (#34183)

* Remove no-longer-used MTRDevice logic for truncating data version lists

After #34111, ReadClient
handles this logic itself, so the attempted truncation in MTRDevice was now dead
code.

* Address review comment.

* Fix compile issues.

* Address another review comment.

* Address review comment.

* Address review comments by JamesH

* Remove unnecessary include file

* Address further review comments from JamhesH

* Restyled by whitespace

* Restyled by clang-format

* Address further review comments from JamesH

* Address further review comments from JamesH

* Update examples/all-clusters-app/all-clusters-common/src/WhmDelegateImpl.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update examples/all-clusters-app/all-clusters-common/src/WhmManufacturer.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update examples/all-clusters-app/all-clusters-common/src/WhmManufacturer.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Undo suggested change from Boris as idx needed in the loop

* Update examples/all-clusters-app/all-clusters-common/src/WhmDelegateImpl.cpp

Co-authored-by: lpbeliveau-silabs <[email protected]>

* Address review comments

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Junior Martinez <[email protected]>
Co-authored-by: C Freeman <[email protected]>
Co-authored-by: Alex Tsitsiura <[email protected]>
Co-authored-by: Pradip De <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: jamesharrow <[email protected]>
Co-authored-by: lpbeliveau-silabs <[email protected]>
j-ororke pushed a commit to j-ororke/connectedhomeip that referenced this pull request Jul 31, 2024
project-chip#34450)

up the flag to the wrapper IM Python APIs.

Add python script binding methods for LargePayload tests
--to check if session allows large payload.
--to close the underlying TCP connection.
--to check if the session is active.
j-ororke pushed a commit to j-ororke/connectedhomeip that referenced this pull request Jul 31, 2024
* Add WHM to the all clusters app

* Restyled by whitespace

* Restyled by clang-format

* Restyled by gn

* Fix CI test

* Address review comments from JamesH

* Address review comments from JamesH

* Address review comments from JamesH

* Restyled by clang-format

* Get tests passing again

* Restyled by clang-format

* Declare some global items for future testing (project-chip#34509)

Co-authored-by: Andrei Litvin <[email protected]>

* [LevelControl] Implemented the Q quality logic for the CurrentLevel a… (project-chip#34488)

* Implemented the Quiete reporting quality logic for the CurrentLevel and RemainingTime attributes

* Restyled by clang-format

* use c++ struct rather than c struct format

* add cluster-building-blocks to the data model public dep

---------

Co-authored-by: Restyled.io <[email protected]>

* Revert thermostat stuff breaking tot (project-chip#34518)

* Revert "update tests and thermostat server cluster for new constraints for LocalTemperatureCalibration and MinSetpointDeadBand (project-chip#34474)"

This reverts commit 335ac96.

* Revert "update constraints for LocalTemperatureCalibration and MinSetpointDeadBand attributes (project-chip#34473)"

This reverts commit 21a5bd6.

* [Telink] Update Docker image (Zephyr update) (project-chip#34503)

* Add TransportPayloadCapability flag for GetConnectedDevices and bubble (project-chip#34450)

up the flag to the wrapper IM Python APIs.

Add python script binding methods for LargePayload tests
--to check if session allows large payload.
--to close the underlying TCP connection.
--to check if the session is active.

* Remove no-longer-used MTRDevice logic for truncating data version lists (project-chip#34183)

* Remove no-longer-used MTRDevice logic for truncating data version lists

After project-chip#34111, ReadClient
handles this logic itself, so the attempted truncation in MTRDevice was now dead
code.

* Address review comment.

* Fix compile issues.

* Address another review comment.

* Address review comment.

* Address review comments by JamesH

* Remove unnecessary include file

* Address further review comments from JamhesH

* Restyled by whitespace

* Restyled by clang-format

* Address further review comments from JamesH

* Address further review comments from JamesH

* Update examples/all-clusters-app/all-clusters-common/src/WhmDelegateImpl.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update examples/all-clusters-app/all-clusters-common/src/WhmManufacturer.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update examples/all-clusters-app/all-clusters-common/src/WhmManufacturer.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Undo suggested change from Boris as idx needed in the loop

* Update examples/all-clusters-app/all-clusters-common/src/WhmDelegateImpl.cpp

Co-authored-by: lpbeliveau-silabs <[email protected]>

* Address review comments

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Junior Martinez <[email protected]>
Co-authored-by: C Freeman <[email protected]>
Co-authored-by: Alex Tsitsiura <[email protected]>
Co-authored-by: Pradip De <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: jamesharrow <[email protected]>
Co-authored-by: lpbeliveau-silabs <[email protected]>
rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this pull request Jul 31, 2024
project-chip#34450)

up the flag to the wrapper IM Python APIs.

Add python script binding methods for LargePayload tests
--to check if session allows large payload.
--to close the underlying TCP connection.
--to check if the session is active.
rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this pull request Jul 31, 2024
* Add WHM to the all clusters app

* Restyled by whitespace

* Restyled by clang-format

* Restyled by gn

* Fix CI test

* Address review comments from JamesH

* Address review comments from JamesH

* Address review comments from JamesH

* Restyled by clang-format

* Get tests passing again

* Restyled by clang-format

* Declare some global items for future testing (project-chip#34509)

Co-authored-by: Andrei Litvin <[email protected]>

* [LevelControl] Implemented the Q quality logic for the CurrentLevel a… (project-chip#34488)

* Implemented the Quiete reporting quality logic for the CurrentLevel and RemainingTime attributes

* Restyled by clang-format

* use c++ struct rather than c struct format

* add cluster-building-blocks to the data model public dep

---------

Co-authored-by: Restyled.io <[email protected]>

* Revert thermostat stuff breaking tot (project-chip#34518)

* Revert "update tests and thermostat server cluster for new constraints for LocalTemperatureCalibration and MinSetpointDeadBand (project-chip#34474)"

This reverts commit 335ac96.

* Revert "update constraints for LocalTemperatureCalibration and MinSetpointDeadBand attributes (project-chip#34473)"

This reverts commit 21a5bd6.

* [Telink] Update Docker image (Zephyr update) (project-chip#34503)

* Add TransportPayloadCapability flag for GetConnectedDevices and bubble (project-chip#34450)

up the flag to the wrapper IM Python APIs.

Add python script binding methods for LargePayload tests
--to check if session allows large payload.
--to close the underlying TCP connection.
--to check if the session is active.

* Remove no-longer-used MTRDevice logic for truncating data version lists (project-chip#34183)

* Remove no-longer-used MTRDevice logic for truncating data version lists

After project-chip#34111, ReadClient
handles this logic itself, so the attempted truncation in MTRDevice was now dead
code.

* Address review comment.

* Fix compile issues.

* Address another review comment.

* Address review comment.

* Address review comments by JamesH

* Remove unnecessary include file

* Address further review comments from JamhesH

* Restyled by whitespace

* Restyled by clang-format

* Address further review comments from JamesH

* Address further review comments from JamesH

* Update examples/all-clusters-app/all-clusters-common/src/WhmDelegateImpl.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update examples/all-clusters-app/all-clusters-common/src/WhmManufacturer.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update examples/all-clusters-app/all-clusters-common/src/WhmManufacturer.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Undo suggested change from Boris as idx needed in the loop

* Update examples/all-clusters-app/all-clusters-common/src/WhmDelegateImpl.cpp

Co-authored-by: lpbeliveau-silabs <[email protected]>

* Address review comments

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Junior Martinez <[email protected]>
Co-authored-by: C Freeman <[email protected]>
Co-authored-by: Alex Tsitsiura <[email protected]>
Co-authored-by: Pradip De <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: jamesharrow <[email protected]>
Co-authored-by: lpbeliveau-silabs <[email protected]>
@pidarped pidarped deleted the PythonBindingsForTCP branch November 12, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants