package com.hxzkoa.udp; import com.hxzkoa.util.Config; public class Hxzk_heart { /* * 6.定位引擎心跳包hxzk_heart C/S引擎心跳包,心跳数据默认10秒钟发送一次。 * hxzk_heart,[length],[timestamp],[mark] */ static String postUrl = Config.getPostUrl(); public static void hxzk_heart(String message) { // postUrl = postUrl + "sensorManagement_bw.do"; String[] dis = message.split(","); String timestamp = dis[2]; // 更改标签的状态和电量信息 // JSONObject tagObject = JSONObject.fromObject(sensor); // HttpUtil.doPost(postUrl, tagObject.toString(),Config.getCharset()); } }