http request 1. 방식: POST (x-www-form-urlencoded) 2. URL: sensor.krict.re.kr/wp-admin/admin-ajax.php 3. 파라미터 (1) 실시간 데이터 모니터링 (예제) : https://sensor.krict.re.kr/?p=1216 - action: ajax_action_Measure_Online - mode: update - data: {"did":1, "tb": "measure_online", "sensors":["Sensor1"], "gases": ["Gas1"], "data":[{"id":1, "Sensor1": 1.3, "Gas1": 300.0, "Time": 25}]} * did 는 데이터번호, 시간에 따른 데이터 업로드
(2) 모바일원격측정 시험 : https://sensor.krict.re.kr/?p=1499 - action: ajax_action_Measure_Online - mode: update - data: {"did":1,"tb":"measures_online","sensors":["MQ2","MQ3","MQ4","MQ5","MQ6","MQ7","MQ8","MQ9"],"gases":["gases"],"data":[{"id":1,"gases":[0.0],"Time":3.69,"sensors":[0.010,0.928,0.503,0.118,0.013,0.949,0.000,0.000]}]}
4. 반환되는 값 - message와 전달된 데이터를 되돌림 |