weixin_33704591 2020-01-21 19:05 采纳率: 0%
浏览 213

更新html表中的值

I use AJAX web server on my ESP32 to display values I measure. The values consist of numbers in an array.

What is the best way to update those values? - If I am using too difficult one.

I am tring to make work this code, but I dont understand what is the problem, since this is a bit over my knowledge.

void handlevalues() {
    server.send(200, "text/plane", String(strd[0][0]) + "," + String(strd[0][1]) + "," + String(strd[1][0]) + "," + String(strd[1][1]));   
    //and so on
}
  • 写回答

1条回答 默认 最新

  • weixin_33714884 2020-01-21 23:04
    关注

    You are trying to send multiple response to a single request so it will return only one value. You have to send only one string. In order to do this, you can find the format that suits you the best (e.g. JSON or CSV or PUG)

    评论

报告相同问题?