This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If a given GATT characteristic is selected, check for supported features. This sample | |
// demonstrates 'Read' and 'Notify' features. See | |
// http://d.android.com/reference/android/bluetooth/BluetoothGatt.html for the complete | |
// list of supported characteristic features. | |
private final ExpandableListView.OnChildClickListener servicesListClickListner = | |
new ExpandableListView.OnChildClickListener() { | |
@Override | |
public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, | |
int childPosition, long id) { | |
if (mGattCharacteristics != null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
06-08 15:52:27.346 24193-24193/ch.nth.android.swisspost.beacons W/System.err﹕ at ch.nth.android.swisspost.beacons.common.activities.MainActivity.onResume(MainActivity.java:352) | |
06-08 15:52:27.346 24193-24193/ch.nth.android.swisspost.beacons W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5274) | |
06-08 15:52:27.347 24193-24193/ch.nth.android.swisspost.beacons W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704) | |
06-08 15:55:33.272 24193-24209/ch.nth.android.swisspost.beacons E/MainActivity﹕ Writen characteristic : Locker characteristic 49 [31] | |
06-08 15:55:33.324 24193-24209/ch.nth.android.swisspost.beacons E/MainActivity﹕ Read characteristic: 286 [1E, 01] | |
06-08 15:55:33.327 24193-24209/ch.nth.android.swisspost.beacons I/SwissPostman﹕ [33460] MainActivity.subscribeForNotifications: subscribed : true | |
06-08 15:55:33.327 24193-24209/ch.nth.android.swisspost.beacons E/MainActivity﹕ Number of logs: 286, array: [1E, 01] | |
06-08 15:55:33.421 24193-24210/ch.nth.android.s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package etfos.hr.tio; | |
import android.content.Context; | |
import android.util.Log; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.google.gson.reflect.TypeToken; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |