Started looking into boat location packets, am able to extract the lats an lons but needs validations. Can also see the device type, timestamp, and sequence number. Code needs to be cleaned up and will need to start looking into the set up packets, specifically the packets containing xml data so the course can be created.

#story[820]
This commit is contained in:
Kusal Ekanayake
2017-04-24 16:47:41 +12:00
parent 403dc480c4
commit 71e14259f6
3 changed files with 35 additions and 19 deletions
@@ -103,7 +103,6 @@ public class StreamReceiver {
e.printStackTrace();
}
}
private static byte[] getBytes(int n){
@@ -124,7 +123,7 @@ public class StreamReceiver {
*
* @return a positive long if there is less than 4 bytes -1 otherwise
*/
private static long bytesToLong(byte[] bytes){
static long bytesToLong(byte[] bytes){
long partialLong = 0;
int index = 0;
for (byte b: bytes){