Skip to content

Commit a2bcc7d

Browse files
committed
[SD] Resolve all Wokwi test issues, all green
1 parent 75b117b commit a2bcc7d

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

src/provisioning/sdcard/ws_sdcard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ void ws_sdcard::waitForSerialConfig() {
10231023
_serialInput.trim();
10241024

10251025
// Print out the received JSON string
1026-
// TODO: REMOVE this for the PR
1026+
// TODO: REMOVE this for the PR
10271027
WS_DEBUG_PRINT("[SD][Debug] JSON string received!");
10281028
if (_use_test_data) {
10291029
WS_DEBUG_PRINTLN("[from json test data]");

tests/scenarios/offline/test-log-analogin.scenario.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ steps:
66
- wait-serial: '[SD] Waiting for incoming JSON string...'
77
- write-serial: '{"exportVersion": "1.0.0", "exportedBy": "wokwi", "exportedAt": "2024-10-28T18:58:23.976Z", "exportedFromDevice": {"board": "metroesp32s3", "firmwareVersion": "1.0.0-beta.93", "referenceVoltage": 2.6, "totalGPIOPins": 11, "totalAnalogPins": 6}, "components": [{"componentAPI": "analogio", "name": "Analog Pin", "pinName": "D14", "type": "analog_pin", "mode": "ANALOG", "direction": "INPUT", "sampleMode": "TIMER", "analogReadMode": "PIN_VALUE", "period": 5, "isPin": true}], "checksum": 149}'
88
- write-serial: '\n'
9-
- wait-serial: '[SD] Valid JSON string received!'
109
- wait-serial: '[analogio] Added new pin:'
1110
- wait-serial: 'Pin Name: 14'
1211
- wait-serial: 'Period: 5000.00'

tests/scenarios/offline/test-log-digital-in.scenario.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
- wait-serial: '[SD] Waiting for incoming JSON string...'
77
- write-serial: '{"checksum":183,"components":[{"componentAPI":"digitalio","direction":"INPUT","isPin":true,"mode":"DIGITAL","name":"Button (D4)","period":5,"pinName":"D4","pull":"UP","sampleMode":"TIMER","type":"push_button"}],"exportVersion":"1.0.0","exportedAt":"2024-10-28T18:58:23.976Z","exportedBy":"wokwi","exportedFromDevice":{"board":"metroesp32s3","firmwareVersion":"1.0.0-beta.93","referenceVoltage":2.6,"totalAnalogPins":6,"totalGPIOPins":11}}'
88
- write-serial: '\n'
9-
- wait-serial: '[SD] Valid JSON string received!'
9+
- wait-serial: '[SD] JSON string received!'
1010
- wait-serial: '[digitalio] Added new pin:'
1111
- wait-serial: 'Pin Name: 4'
1212
- wait-serial: 'Period: 5000'

tests/scenarios/offline/test-log-ds18b20.scenario.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ steps:
66
- wait-serial: '[SD] Waiting for incoming JSON string...'
77
- write-serial: '{"exportVersion": "1.0.0", "exportedBy": "wokwi", "exportedAt": "2024-10-28T18:58:23.976Z", "exportedFromDevice": {"board": "metroesp32s3", "firmwareVersion": "1.0.0-beta.93", "referenceVoltage": 2.6, "totalGPIOPins": 11, "totalAnalogPins": 6}, "components": [{"componentAPI": "ds18x20", "name": "DS18B20: Temperature Sensor", "sensorTypeCount": 2, "sensorType1": "object-temp-fahrenheit", "sensorType2": "object-temp", "pinName": "D6", "sensorResolution": 12, "period": 5}], "checksum": 34}'
88
- write-serial: '\n'
9-
- wait-serial: '[SD] Valid JSON string received!'
109
- wait-serial: '{"timestamp":0,"pin":"D6","value":0,"si_unit":"OBJECT_TEMPERATURE"}'
1110
- wait-serial: '{"timestamp":0,"pin":"D6","value":32,"si_unit":"OBJECT_TEMPERATURE_FAHRENHEIT"}'

0 commit comments

Comments
 (0)