PanelLineController.cs 564 B

12345678910111213141516171819202122
  1. using LitJson;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using XCharts.Runtime;
  6. public class PanelLineController : MonoBehaviour
  7. {
  8. public LineChart humitLine;
  9. private void Start()
  10. {
  11. JsonData data = new JsonData();
  12. data["deviceClassification"] = "TEMPERATURE_HUMIDITY";
  13. data["ago"] = 25;
  14. PanelController.Instance.Post("https://api-fat1.ghz-tech.com" + "/feature-tester/v1/AIot/device/getDatapoint", data.ToJson(), (msg) =>
  15. {
  16. Debug.Log(msg);
  17. });
  18. }
  19. }