How to interface with a Stream Deck device.
The device uses the HID protocol to communicate with its software.
| package com.sam016.vsflatomation.service.ble; | |
| import java.util.HashMap; | |
| import java.util.UUID; | |
| public class AllGattCharacteristics { | |
| private static HashMap<String, String> attributes = new HashMap(); | |
| static { | |
| attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name"); |
| #!/bin/sh | |
| # 1) Install Xcode 11 | |
| # 2) Install command line tools: `xcode-select --install` | |
| # 3) Install HomeBrew | |
| # 4) brew tap cartr/qt4 && brew install cartr/qt4/openssl@1.0 subversion rbenv | |
| # 5) Setup rbenv | |
| # 6) Run this command | |
| PKG_CONFIG_PATH="$(brew --prefix cartr/qt4/openssl@1.0)/lib/pkgconfig" \ |
| package com.example; | |
| import org.springframework.beans.factory.InjectionPoint; | |
| import org.springframework.beans.factory.ObjectFactory; | |
| import org.springframework.context.annotation.AnnotationConfigApplicationContext; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.context.annotation.Scope; | |
| import org.springframework.stereotype.Component; |
| import java.io.IOException; | |
| import java.net.URISyntaxException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; | |
| import java.security.KeyFactory; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.PrivateKey; | |
| import java.security.interfaces.RSAPublicKey; | |
| import java.security.spec.InvalidKeySpecException; | |
| import java.security.spec.PKCS8EncodedKeySpec; |
| @Entity | |
| public class MyEntity { | |
| @Id | |
| @GeneratedValue(strategy = GenerationType.AUTO) | |
| @Column(name = "id", updatable = false, nullable = false) | |
| private Long id; | |
| @Column | |
| private LocalDate date; |
| The MIT License (MIT) | |
| Copyright (c) 2015 Simon Vos | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |