Teltonika GPS first ACK using JAVA -
i programing listener teltonika gps. may know, teltonika sends first time imei, server needs respond "01" accepting full raw data. so, stuck responding gps, here's partial code:
dataoutputstream outtoserver = null; outtoserver = new dataoutputstream(this.tcpsocket.getoutputstream()); byte[] msg = new byte[]{0x01}; outtoserver.write(msg, 0, msg.length); outtoserver.flush();
nothing happens, gps continuing send me imei
for future reference.
01 in binary equals byte value of 1.
byte[] msg = new byte[]{1}; outtoserver.write(msg, 0, msg.length); outtoserver.flush();
Comments
Post a Comment