Skip to content

Instantly share code, notes, and snippets.

View saschadoemer's full-sized avatar
:octocat:
☜(⌒▽⌒)☞

Sascha Doemer saschadoemer

:octocat:
☜(⌒▽⌒)☞
View GitHub Profile
@saschadoemer
saschadoemer / HowToEncodeMessagesWithTheAgrirouterSDK.java
Created March 31, 2022 15:22
How to encode messages with the agrirouter SDK without an onboard response.
SetCapabilitiesParameters parameters = new SetCapabilitiesParameters();
final ArrayList<SetCapabilitiesParameters.CapabilityParameters> capabilitiesParameters = new ArrayList<>();
final SetCapabilitiesParameters.CapabilityParameters capabilityParameters = new SetCapabilitiesParameters.CapabilityParameters();
capabilityParameters.setTechnicalMessageType(ContentMessageType.ISO_11783_TASKDATA_ZIP);
capabilityParameters.setDirection(Capabilities.CapabilitySpecification.Direction.SEND_RECEIVE);
capabilitiesParameters.add(capabilityParameters);
parameters.setCapabilitiesParameters(capabilitiesParameters);
parameters.setEnablePushNotifications(Capabilities.CapabilitySpecification.PushNotification.ENABLED);
parameters.setApplicationId("YOUR_APPLICATION_ID");
parameters.setCertificationVersionId("YOUR_CERTIFICATION_VERSION_ID");
@saschadoemer
saschadoemer / application.yml
Created June 8, 2021 08:59
[agrirouter] Logging configuration for Spring Boot
# This will result in Logging based on level INFO but for every aspect of the SDK the logging is turned off.
# Setting the value for the package will either increase or decrease the logging.
logging:
level:
root: info
com.dke.data.agrirouter: off
@saschadoemer
saschadoemer / gpg-no-tty.sh
Last active September 21, 2023 13:44
Simple workaround for "no-tty" GPG signing - Part I
# file /home/user/gpg-no-tty.sh
#!/bin/bash
/usr/bin/gpg --batch --no-tty "$@"