-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(modem): Add CMUX example to target tests
- Loading branch information
1 parent
0db29f2
commit d61ce9e
Showing
4 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
components/esp_modem/examples/simple_cmux_client/pytest_cmux.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD | ||
# SPDX-License-Identifier: Unlicense OR CC0-1.0 | ||
from __future__ import print_function, unicode_literals | ||
|
||
|
||
def test_cmux_connection(dut): | ||
""" | ||
steps: | ||
1. initializes connection with SIM800 | ||
2. checks we get an IP | ||
3. checks for the MQTT events | ||
""" | ||
# Check the sequence of connecting, publishing, disconnecting | ||
dut.expect('Modem has correctly entered multiplexed') | ||
# Check for MQTT connection and the data event | ||
dut.expect('TOPIC: /topic/esp-modem') | ||
dut.expect('DATA: Hello modem') |
16 changes: 16 additions & 0 deletions
16
components/esp_modem/examples/simple_cmux_client/sdkconfig.ci.sim800_cmux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CONFIG_IDF_TARGET="esp32c3" | ||
# Override some defaults to enable PPP | ||
CONFIG_LWIP_PPP_SUPPORT=y | ||
CONFIG_LWIP_PPP_NOTIFY_PHASE_SUPPORT=y | ||
CONFIG_LWIP_PPP_PAP_SUPPORT=y | ||
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=4096 | ||
CONFIG_LWIP_PPP_ENABLE_IPV6=n | ||
CONFIG_EXAMPLE_MODEM_UART_TX_PIN=4 | ||
CONFIG_EXAMPLE_MODEM_UART_RX_PIN=5 | ||
CONFIG_EXAMPLE_MODEM_DEVICE_SIM800=y | ||
CONFIG_EXAMPLE_MODEM_DEVICE_BG96=n | ||
CONFIG_EXAMPLE_MODEM_PPP_APN="lpwa.vodafone.com" | ||
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y | ||
CONFIG_ESP32_PANIC_PRINT_HALT=y | ||
CONFIG_COMPILER_CXX_EXCEPTIONS=y | ||
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192 |