| | |
| | | if (0 < index && isMatch) {
|
| | | List<Byte> tempList = new ArrayList<Byte>();
|
| | | for (int i = index; i < list.size(); i++) {
|
| | | tempList.add(list.get(index));
|
| | | tempList.add(list.get(i));
|
| | | }
|
| | |
|
| | | list.clear();
|
| | |
| | | } else {
|
| | | response.setData(new String(body, "utf-8"));
|
| | | }
|
| | | Log.i("TAG", "LinkMessageDecoder->decoder:" + response.getTopic() + "\r\n" + response.getData());
|
| | | LogUtils.i( "LinkMessageDecoder->decoder:" + response.getTopic() + "\r\n" + response.getData());
|
| | | //解析完成,topic发送一次
|
| | | EventDispatcher.getInstance().post(response.getTopic(), response);
|
| | | }
|