凌云物联网实验室ISKBoard(IoT Starter Kits Board)开发板项目源码
guowenxue
2023-04-04 204613ab0b84b39c707900d276b5ff35ce67d96e
update wifi test program
1 files modified
10 ■■■■■ changed files
Production/ISKBoard_QCTester/Core/Src/main.c 10 ●●●●● patch | view | raw | blame | history
Production/ISKBoard_QCTester/Core/Src/main.c
@@ -136,7 +136,7 @@
  MX_CAN1_Init();
  /* USER CODE BEGIN 2 */
  printf("Welcome to ISKBoard v1.0\r\n");
  printf("Welcome to ISKBoard v1.0, compiled on %s %s\r\n", __DATE__, __TIME__);
  OLED_Init();
  ws2812b_init();
@@ -507,11 +507,19 @@
        }
        printf("ESP32 firmware version:\r\n%s\r\n", version);
        if( !strstr(version, "1.7.1.0") )
        {
            printf("ERROR: ESP32 firmware not matched, please upgrade it first!\r\n");
            rv = -2;
            goto cleanup;
        }
        init = 1;
    }
    rv = send_atcmd_check_ok(comport, "AT", 500);
cleanup:
    printf("WiFi module AT test       [%s]\r\n", rv?"FAIL":"OKAY");
    snprintf(oledstr, sizeof(oledstr), "WiFi: %s", rv?"FAIL":"OK");
    oled_show(oledstr);