Skip to content

Instantly share code, notes, and snippets.

@medvednic
medvednic / gist:3fb758f41e979ca47b9bba71d6e91fe5
Created August 20, 2017 12:26
AndroidBluetoothLibrary test app log
08-20 15:21:42.072 D/MainActivity: {imei: 861311006131360, name: 'Bluetooth nmea', ver: 8}
08-20 15:21:45.114 V/BluetoothLeService: onCharacteristicChanged: {imei: 8613110061313
08-20 15:21:45.133 V/BluetoothLeService: onCharacteristicChanged: 60, name: 'Bluetooth
08-20 15:21:45.152 V/BluetoothLeService: onCharacteristicChanged: nmea', ver: 8}
08-20 15:21:45.152 D/MainActivity: {imei: 861311006131360, name: 'Bluetooth nmea', ver: 8}
08-20 15:21:48.173 V/BluetoothLeService: onCharacteristicChanged: {imei: 8613110061313
08-20 15:21:48.192 V/BluetoothLeService: onCharacteristicChanged: 60, name: 'Bluetooth
08-20 15:21:48.212 V/BluetoothLeService: onCharacteristicChanged: nmea', ver: 8}
08-20 15:21:48.212 D/MainActivity: {imei: 861311006131360, name: 'Bluetooth nmea', ver: 8}
08-20 15:21:51.253 V/BluetoothLeService: onCharacteristicChanged: {imei: 8613110061313
@medvednic
medvednic / gist:f3e3f562402653557b4d149dc1a28192
Last active August 18, 2017 07:54
AndroidBluetoothLibrary test log
08-18 10:30:14.059 V/BluetoothLeService: onServicesDiscovered: 0
08-18 10:30:14.059 V/BluetoothLeService: Service: 00001800-0000-1000-8000-00805f9b34fb
08-18 10:30:14.059 V/BluetoothLeService: Service: 00001801-0000-1000-8000-00805f9b34fb
08-18 10:30:14.059 V/BluetoothLeService: Service: 0000180a-0000-1000-8000-00805f9b34fb
08-18 10:30:14.059 V/BluetoothLeService: Service: 0000ffe0-0000-1000-8000-00805f9b34fb
08-18 10:30:14.059 V/BluetoothLeService: Characteristic: 0000ffe1-0000-1000-8000-00805f9b34fb PROPERTY_WRITE: 8 PROPERTY_WRITE_NO_RESPONSE: 4
08-18 10:30:14.059 D/BluetoothGatt: setCharacteristicNotification() - uuid: 0000ffe1-0000-1000-8000-00805f9b34fb enable: true
08-18 10:30:14.060 D/BluetoothGatt: configureMTU() - device: 00:15:83:00:66:37 mtu: 512
08-18 10:30:14.060 V/BluetoothLeService: requestMtu: true
08-18 10:30:14.063 D/MainActivity: onDeviceName
@medvednic
medvednic / IdExclusionClassMapBuilder.java
Last active July 19, 2017 18:37
Custom ClassMapBuilder for deep copying using Orika mapper
import ma.glasnost.orika.DefaultFieldMapper;
import ma.glasnost.orika.MapperFactory;
import ma.glasnost.orika.metadata.ClassMapBuilder;
import ma.glasnost.orika.metadata.ClassMapBuilderFactory;
import ma.glasnost.orika.metadata.Type;
import ma.glasnost.orika.property.PropertyResolverStrategy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.persistence.Id;