Implementation of the JINS MEME SDK
import { JinsMeme } from '@ionic-native/jins-meme';
constructor(private jinsMeme: JinsMeme) { }
...
this.jinsMeme.setAppClientID(appClientId: string, clientSecret: string).then(
// Bluetooth should be enabled and the JINS MEME powered on (blinking blue light)
this.jinsMeme.startScan().subscribe((meme_addr) => {
this.jinsMeme.connect(meme_addr).subscribe((connectResult) => {
this.memeService.startDataReport().subscribe((dataReport) => {
console.log(dataReport);
});
});
});
.catch(console.log('jinsMeme.setAppClientID authentication error'));