Skip to content

Commit f589def

Browse files
committed
MCU8MASS-1827 Add promt at the start of extract_certificates.ino and ping microchip.com instead of google in custom_at_commands.ino
1 parent e86131b commit f589def

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

examples/custom_at_commands/custom_at_commands.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void setup() {
8383
// was written successfully. We do it this way for this example as we want
8484
// to utilise notifications and the ping command is blocking. This is thus
8585
// purely an example.
86-
const char* command = "AT+PING=\"www.google.com\"";
86+
const char* command = "AT+PING=\"www.microchip.com\"";
8787
SequansController.writeBytes((uint8_t*)command, strlen(command), true);
8888

8989
// The default ping will retrieve four responses, so wait for them

examples/extract_certificates/extract_certificates.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ void setup() {
3030
if (atca_status != ATCA_SUCCESS) {
3131
Log.errorf("Failed to initialize ECC608, status code: 0x%X\r\n",
3232
atca_status);
33+
return;
3334
}
3435

36+
Log.info("Initialized ECC\r\n");
37+
3538
// Extract the max size of the certificates first
3639

3740
size_t max_root_certificate_size = 0, max_signer_certificate_size = 0,

test/test_examples.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def example_test_data():
8080
},
8181
{
8282
"expectation": "\\[ERROR\\] Error writing command, the response was:",
83-
"timeout": 20
83+
"timeout": 20
8484
},
8585
{
8686
"expectation": "\\+CME ERROR: invalid characters in text string"
@@ -142,7 +142,27 @@ def example_test_data():
142142
"expectation": "\r\n"
143143
},
144144
{
145-
"expectation": "\\[INFO\\] Printing signing certificate..."
145+
"expectation": "\\[INFO\\] Printing root certificate..."
146+
},
147+
{
148+
"expectation": "\r\n"
149+
},
150+
{
151+
"expectation": "-----BEGIN CERTIFICATE-----"
152+
},
153+
{
154+
"repeat": 11,
155+
"expectation": "([^\\n]+)"
156+
},
157+
{
158+
"expectation": "-----END CERTIFICATE-----"
159+
},
160+
{
161+
"repeat": 3,
162+
"expectation": "\r\n"
163+
},
164+
{
165+
"expectation": "\\[INFO\\] Printing signer certificate..."
146166
},
147167
{
148168
"expectation": "\r\n"
@@ -759,4 +779,3 @@ def test_sandbox(request, backend, session_config, example_test_data):
759779

760780
def test_serial(request, backend, session_config, example_test_data):
761781
run_test(request, backend, session_config, example_test_data)
762-

0 commit comments

Comments
 (0)