dernasherbrezon / amsatTlmClient

Java client for sending telemetry data to AMSAT
Apache License 2.0
0 stars 0 forks source link
java satellite telemetry

About Build Status Quality Gate Status

Java client for sending telemetry data to AMSAT.

Usage

  1. Add maven dependency:
<dependency>
  <groupId>ru.r2cloud</groupId>
  <artifactId>amsatTlmClient</artifactId>
  <version>1.0</version>
</dependency>
  1. Setup client:
List<InetSocketAddress> servers = new ArrayList<>();
servers.add(new InetSocketAddress("tlm.amsat.org", 41042));
servers.add(new InetSocketAddress("tlm.amsat.us", 41042));
AmsatTlmClient client = new AmsatTlmClient(servers, 10000);
  1. Prepare and send request:
Frame frame = new Frame();
frame.setCallsign("callsign");
frame.setData(new byte[]{ ... });
frame.setLatitude(0.0);
frame.setLongitude(0.0);
frame.setSatellite(Satellite.FOX1A);
frame.setSequence(127631L);
frame.setTime(new Date());
client.send(frame);