This file contains hidden or 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
#include <WioLTEforArduino.h> | |
#define EC21J Serial1 | |
WioLTE Wio; | |
void setup() { | |
delay(200); | |
SerialUSB.println(""); |
This file contains hidden or 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
#include <WioLTEforArduino.h> | |
#include <stdio.h> | |
#define APN "mineo.jp" | |
#define USERNAME "[email protected]" | |
#define PASSWORD "mineo" | |
#define WEBHOOK_EVENTNAME "wiolte_uptime" | |
#define WEBHOOK_KEY "秘密" | |
#define WEBHOOK_URL "https://maker.ifttt.com/trigger/"WEBHOOK_EVENTNAME"/with/key/"WEBHOOK_KEY |
This file contains hidden or 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
#include <WioLTEforArduino.h> | |
#include <limits.h> | |
#include <stdio.h> | |
WioLTE Wio; | |
void setup() { | |
// put your setup code here, to run once: | |
delay(200); |
This file contains hidden or 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
#include <WioLTEforArduino.h> | |
#include <limits.h> | |
WioLTE Wio; | |
void setup() { | |
// put your setup code here, to run once: | |
delay(200); | |
SerialUSB.println(""); |
This file contains hidden or 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
10-19 13:02:52.960 16160-16160/.mamorio E/AndroidRuntime: FATAL EXCEPTION: main | |
Process: .mamorio, PID: 16160 | |
java.lang.LinkageError: com.google.android.gms.common.GoogleApiAvailability | |
at com.google.android.gms.common.api.GoogleApiClient$Builder.<init>(Unknown Source) | |
at otoshimono.com.lost.mamorio.sdk.BackgroundRangingService.initGoogleAPI(BackgroundRangingService.java:1638) | |
at otoshimono.com.lost.mamorio.sdk.BackgroundRangingService.beginRanging(BackgroundRangingService.java:1499) | |
at otoshimono.com.lost.mamorio.sdk.BackgroundRangingService.onStartCommand(BackgroundRangingService.java:561) | |
This file contains hidden or 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 jp.eguchi.android.mamoriosample2; | |
import android.Manifest; | |
import android.content.pm.PackageManager; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import java.util.List; |
This file contains hidden or 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
private MidiDevice mMidiDevice = null; | |
mMIDIManager.openBluetoothDevice(device, new MidiManager.OnDeviceOpenedListener() { | |
@Override | |
public void onDeviceOpened(MidiDevice midiDevice) { | |
if(midiDevice != null) | |
{ | |
mMidiDevice = midiDevice; | |
〜 省略 〜 | |
} |
This file contains hidden or 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
// Wx2Beaconの測定データを取得するプログラム | |
// Programed by Kazuyuki Eguchi | |
var noble = require('noble'); | |
var WX2_SERVICE_UUID = '0c4c3000770046f4aa96d5e974e32a54'; | |
var WX2_NOWDATA_UUID = '0c4c3001770046f4aa96d5e974e32a54'; | |
noble.on('stateChange', function(state) { | |
console.log('on -> stateChange: ' + state); |
This file contains hidden or 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
@Override protected void onCreate(Bundle savedInstanceState) { | |
Log.d(TAG,"onCreate()"); | |
super.onCreate(savedInstanceState); | |
sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); | |
try { | |
mSensorDriver = new Bmx280SensorDriver(RainbowHat.BUS_SENSOR); | |
mSensorDriver.registerTemperatureSensor(); | |
mSensorDriver.registerPressureSensor(); |
This file contains hidden or 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
android { | |
compileSdkVersion 23 | |
buildToolsVersion "23.0.2" | |
useLibrary 'org.apache.http.legacy' | |
...省略 | |
} |