| | |
| | | import ng.db.DBSession; |
| | | import ng.devices.HexUtil; |
| | | import org.json.JSONArray; |
| | | import toTcp.TcpMain; |
| | | import toTcp.gethex; |
| | | |
| | | import java.io.BufferedWriter; |
| | | import java.io.OutputStreamWriter; |
| | |
| | | Manager.mmgr.RunAll(); |
| | | //启动标志 |
| | | state = true; |
| | | TcpMain.getElectric(); |
| | | } catch (Exception e) { |
| | | // TODO Auto-generated catch block |
| | | e.printStackTrace(); |
| | |
| | | while(true){ |
| | | try { |
| | | Thread.sleep(100); |
| | | TcpMain.getElectric(); |
| | | } catch (InterruptedException e) { |
| | | // TODO Auto-generated catch block |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |