Class

MemeLib

Provides means of running commands, scanning and establishing connection to JINS MEME.
Responses from JINS MEME can be retrieved through each MemeLibDelegate.

NOTE Make sure to use setAppClientID to set up your App ID and App Secret.
MemeLib will not work unless you go through the authentication process.

Inheritance
NSObject
↳ MemeLib
Confirms To
NSObject
Availability
Available in iOS 8.0 and later.

- setAppClientID:ClientHash:

Authentication and authorization of App and SDK.

Declaration
- (void)setAppClientID:(NSString *)ClientId ClientHash:(NSString *)ClientHash
Parameters
AppClientId:NSStringApp ID issued when App is registered to JINS MEME
AppClientHash:NSStringApp Secret issued when App is registered to JINS MEME
Return Value
void
Availability
Available in iOS 8.0 and later.

- setAutoConnect:

Configure auto connection to JINS MEME.
When it is true, MemeLib tries to establish connection with last connected JINS MEME, when it is not connected.

Declaration
- (void)setAutoConnect:(BOOL *)
Parameters
BOOLtrue - enable auto-connect, false - disable auto-connect
Return Value
None
Availability
Available in iOS 8.0 and later.

- isConnected:

Returns whether a connection to JINS MEME has been established.

Declaration
- (BOOL)isConnected
Parameters
None
Return Value
BOOL
Availability
Available in iOS 8.0 and later.

- startScanningPeripherals:

Begin scanning JINS MEME.

Declaration
- (MEMEStatus)startScanningPeripherals
Parameters
None
Return Value
MemeStatusSee MemeStatus
Availability
Available in iOS 8.0 and later.

- stopScanningPeripherals:

Stops scanning JINS MEME.

Declaration
- (MEMEStatus)stopScanningPeripherals
Parameters
None
Return Value
MemeStatusSee MemeStatus
Availability
Available in iOS 8.0 and later.

- connectPeripheral:

Establishes connection to JINS MEME.

Declaration
- (MemeStatus)connectPeripheral:(CBPeripheral *)
Parameters
CBPeripheral
Return Value
MemeStatusSee MemeStatus
Availability
Available in iOS 8.0 and later.

- diconnectPeripheral:

Disconnects from JINS MEME.

Declaration
- (MemeStatus)diconnectPeripheral
Parameters
CBPeripheral
Return Value
MemeStatus
Availability
Available in iOS 8.0 and later.

- getSDKVersion:

Returns SDK version.

Declaration
- (NSString *)getSDKVersion
Parameters
None
Return Value
string
Availability
Available in iOS 8.0 and later.

- getFWVVersion:

Returns firmware version

Declaration
- (NSString *)getFWVersion
Parameters
None
Return Value
stringFirmware version
Availability
Available in iOS 8.0 and later.

- startDataReport:

Starts receiving data

Declaration
- (MEMEStatus)startDataReport
Parameters
None
Return Value
MEMEStatusSee MemeStatus
Availability
Available in iOS 8.0 and later.

- stopDataReport:

Stops receiving data

Declaration
- (MEMEStatus)stopDataReport
Parameters
なし
Return Value
MEMEStatusSee MemeStatus
Availability
Available in iOS 8.0 and later.

- getConnectedByOthers:

Returns JINS MEME connected with other apps

Declaration
- (NSArray *)getConnectedByOthers
Parameters
CBPeripheral (array)Array of connected JINS MEME CBPeripheral objects
Return Value
void
Availability
Available in iOS 8.0 and later.

- isCalibrated:

Returns calibration status

Declaration
- (MEMECalibStatus)isCalibrated
Parameters
None
Return Value
MEMECalibStatusSee MemeCalibStatus
Availability
Available in iOS 8.0 and later.

- getConnectedDeviceType:

Returns device type

Declaration
- (int)getConnectedDeviceType
Parameters
void
Return Value
126
ES (Wellington)MT(sunglasses)SW ES (Wellington)
Availability
Available in iOS 8.0 and later.

- getConnectedDeviceSubType:

Returns device sub-type

Declaration
- (int)getConnectedDeviceSubType
Parameters
void
Return Value
12
shinny blackmat black
Availability
Available in iOS 8.0 and later.

- isDataReceiving:

Returns response about whether data was received or not

Declaration
- (BOOL)isDataReceiving
Parameters
void
Return Value
BoolData received status
Availability
Available in iOS 8.0 and later.

- getHWVersion:

Returns hardware version

Declaration
- (UInt8)getHWVersion
Parameters
void
Return Value
UInt8
Availability
Available in iOS 8.0 and later.