Skip to content

Commit

Permalink
Update MeshtasticReceiver.java
Browse files Browse the repository at this point in the history
  • Loading branch information
niccellular committed May 9, 2024
1 parent 8a1020d commit d3ccf29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,14 @@ public void onReceive(Context context, Intent intent) {
e.printStackTrace();
return;
}
Log.d(TAG, "Sending CoT for NodeInfo");
Log.d(TAG, "Creating CoT for Sensor NodeInfo");
CotEvent cotEvent = new CotEvent();
CoordinatedTime time = new CoordinatedTime();
cotEvent.setTime(time);
cotEvent.setStart(time);
cotEvent.setStale(time.addMinutes(10));

cotEvent.setUID(String.valueOf(teamColor[0].hashCode()));
cotEvent.setUID(ni.getUser().getId());
CotPoint gp = new CotPoint(ni.getPosition().getLatitude(), ni.getPosition().getLongitude(), ni.getPosition().getAltitude(), CotPoint.UNKNOWN, CotPoint.UNKNOWN);
cotEvent.setPoint(gp);
cotEvent.setHow("m-g");
Expand Down

0 comments on commit d3ccf29

Please sign in to comment.