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

更新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)

    评论

报告相同问题?

悬赏问题

  • ¥30 软件自定义无线电该怎样使用
  • ¥15 R语言mediation包做中介分析,直接效应和间接效应都很小,为什么?
  • ¥15 Jenkins+k8s部署slave节点offline
  • ¥15 微信小游戏反编译后,出现找不到分包的情况
  • ¥15 如何实现从tello无人机上获取实时传输的视频流,然后将获取的视频通过yolov5进行检测
  • ¥15 WPF使用Canvas绘制矢量图问题
  • ¥15 用三极管设计一个单管共射放大电路
  • ¥15 孟德尔随机化r语言运行问题
  • ¥15 pyinstaller编译的时候出现No module named 'imp'
  • ¥15 nirs_kit中打码怎么看(打码文件是csv格式)