This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSP432E401Y:错误:基于 SDK 4.20.00.12中 SimpleLink 的 HTTP 服务器

Guru**** 2535750 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1184475/msp432e401y-bug-http-server-based-on-simplelink-from-sdk-4-20-00-12

器件型号:MSP432E401Y

不是问题、只是报告错误。

如果您声明 URL 处理程序:

URLHandler_Setup http_server_handlerTable[]={

 null、
 null、
 null、
 http_urlhandler_process、
 null、
 null
 }

在 SDK 服务器  httpserver.c 的函数  deleteSession 中

部分原因  

对于(i = 0;i < srv->numURLh;i++){
  if (ssession->urlh[i]){
   SRV->setup[I].del (&Session->urlh[i]);
  }

srv->setup[i].del 中的 del 是指该表中的第3项。

它不会检查 DEL 是否存在、您的程序将崩溃。

修复代码或添加虚拟  http_urlhandler_delete

代码需要一段时间才能达到该值、但如果您有一个 javascript UI 来轮询状态 CGI 端点、它最终会使处理器崩溃  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Jan、

    感谢您提供错误报告、我们将记录此信息以供进一步调查。

    此致、

    Ralph Jacobi