-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from LUXROBO/release/0.1.0
Release/0.1.0
- Loading branch information
Showing
31 changed files
with
758 additions
and
862 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
24 changes: 21 additions & 3 deletions
24
api/src/main/java/com/luxrobo/modiplay/api/client/BluetoothClient.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,44 @@ | ||
/* | ||
* Developement Part, Luxrobo INC., SEOUL, KOREA | ||
* Copyright(c) 2018 by Luxrobo Inc. | ||
* Developement Part, LUXROBO INC., SEOUL, KOREA | ||
* Copyright(c) 2018 by LUXROBO Inc. | ||
* | ||
* All rights reserved. No part of this work may be reproduced, stored in a | ||
* retrieval system, or transmitted by any means without prior written | ||
* Permission of Luxrobo Inc. | ||
* Permission of LUXROBO Inc. | ||
*/ | ||
|
||
package com.luxrobo.modiplay.api.client; | ||
|
||
|
||
public interface BluetoothClient { | ||
|
||
/** | ||
* Callback when Bluetooth enabled | ||
*/ | ||
void onBluetoothEnabled(); | ||
|
||
/** | ||
* Callback when Bluetooth disabled | ||
*/ | ||
void onBluetoothDisabled(); | ||
|
||
/** | ||
* Callback when Bluetooth connected | ||
*/ | ||
void onBluetoothStateOnConnected(); | ||
|
||
/** | ||
* Callback when Bluetooth disconnected | ||
*/ | ||
void onBluetoothStateOnDisconnected(); | ||
|
||
/** | ||
* Callback when Bluetooth error | ||
*/ | ||
void onBluetoothError(); | ||
|
||
/** | ||
* Callback when Bluetooth state unknown | ||
*/ | ||
void onBluetoothStateUnknown(int state); | ||
} |
11 changes: 8 additions & 3 deletions
11
api/src/main/java/com/luxrobo/modiplay/api/client/LogClient.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
/* | ||
* Developement Part, Luxrobo INC., SEOUL, KOREA | ||
* Copyright(c) 2018 by Luxrobo Inc. | ||
* Developement Part, LUXROBO INC., SEOUL, KOREA | ||
* Copyright(c) 2018 by LUXROBO Inc. | ||
* | ||
* All rights reserved. No part of this work may be reproduced, stored in a | ||
* retrieval system, or transmitted by any means without prior written | ||
* Permission of Luxrobo Inc. | ||
* Permission of LUXROBO Inc. | ||
*/ | ||
|
||
package com.luxrobo.modiplay.api.client; | ||
|
||
|
||
public interface LogClient { | ||
|
||
/** | ||
* Callback when received raw data from MODI Network Module | ||
* | ||
* @param data raw data | ||
*/ | ||
void onReceivedRawData(String data); | ||
} |
51 changes: 29 additions & 22 deletions
51
api/src/main/java/com/luxrobo/modiplay/api/client/ModiClient.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,86 @@ | ||
/* | ||
* Developement Part, Luxrobo INC., SEOUL, KOREA | ||
* Copyright(c) 2018 by Luxrobo Inc. | ||
* Developement Part, LUXROBO INC., SEOUL, KOREA | ||
* Copyright(c) 2018 by LUXROBO Inc. | ||
* | ||
* All rights reserved. No part of this work may be reproduced, stored in a | ||
* retrieval system, or transmitted by any means without prior written | ||
* Permission of Luxrobo Inc. | ||
* Permission of LUXROBO Inc. | ||
*/ | ||
|
||
package com.luxrobo.modiplay.api.client; | ||
|
||
import android.bluetooth.BluetoothDevice; | ||
|
||
import com.luxrobo.modiplay.api.enums.State; | ||
|
||
public interface ModiClient { | ||
|
||
/** | ||
* 디바이스를 찾으면 호출되는 메소드 | ||
* @param device | ||
* @param rssi | ||
* @param scanRecord | ||
* Callback when found device | ||
* | ||
* @param device BluetoothDevice | ||
* @param rssi RSSI | ||
* @param scanRecord ScanResult ScanRecord | ||
*/ | ||
void onFoundDevice(BluetoothDevice device, int rssi, byte[] scanRecord); | ||
|
||
/** | ||
* 서비스가 발견되면 호출되는 메소드 | ||
* Callback when service discovered | ||
*/ | ||
void onDiscoveredService(); | ||
|
||
/** | ||
* 연결이 되면 호출되는 메소드 | ||
* Callback when device connected | ||
*/ | ||
void onConnected(); | ||
|
||
/** | ||
* 연결이 해제 되면 호출되는 메소드 | ||
* Callback when device disconnected | ||
*/ | ||
void onDisconnected(); | ||
|
||
/** | ||
* 스캔 상태를 알려주는 메소드 | ||
* @param isScaning 스캔중이면 true, 아니면 false | ||
* Callback when changed the scan state | ||
* | ||
* @param isScaning | ||
*/ | ||
void onScanning(boolean isScaning); | ||
|
||
/** | ||
* 네트워크 모듈에서 데이터를 받으면 호출되는 메소드 | ||
* @param data Raw Data를 String으로 표시한 값 | ||
* Callback when received data from MODI Network Module | ||
* | ||
* @param data display converted raw data to ascii string | ||
*/ | ||
void onReceivedData(String data); | ||
|
||
/** | ||
* 네트워크 모듈에서 데이터를 받으면 호출되는 메소드 | ||
* @param data Raw Data | ||
* Callback when received data from MODI Network Module | ||
* | ||
* @param data raw data | ||
*/ | ||
void onReceivedData(byte[] data); | ||
|
||
/** | ||
* MODI Studio상에서 Send Data를 통해 받은 값 | ||
* Callback when received user data from `Send Data` on MODI Studio | ||
* | ||
* @param data | ||
*/ | ||
void onReceivedUserData(int data); | ||
|
||
/** | ||
* MODI Studio상에서 Buzzer의 값 | ||
* @param state on: 1, off: 0 | ||
* Callback when received buzzer state from MODI Studio | ||
* | ||
* @param state enum State.Buzzer | ||
*/ | ||
void onBuzzerState(int state); | ||
void onBuzzerState(State.Buzzer state); | ||
|
||
/** | ||
* evne가 꺼지면 호출되는 메소드 | ||
* Callback when event off | ||
*/ | ||
void onOffEvent(); | ||
|
||
/** | ||
* 네트워크 모듈이 전원이 꺼지면서 연결이 끊긴것을 감지하는 메소드 | ||
* Callback when disconnected MODI Network Module that power off | ||
*/ | ||
void disconnectedByModulePowerOff(); | ||
} |
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
12 changes: 9 additions & 3 deletions
12
api/src/main/java/com/luxrobo/modiplay/api/client/ServiceStateClient.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
/* | ||
* Developement Part, Luxrobo INC., SEOUL, KOREA | ||
* Copyright(c) 2018 by Luxrobo Inc. | ||
* Developement Part, LUXROBO INC., SEOUL, KOREA | ||
* Copyright(c) 2018 by LUXROBO Inc. | ||
* | ||
* All rights reserved. No part of this work may be reproduced, stored in a | ||
* retrieval system, or transmitted by any means without prior written | ||
* Permission of Luxrobo Inc. | ||
* Permission of LUXROBO Inc. | ||
*/ | ||
|
||
package com.luxrobo.modiplay.api.client; | ||
|
||
|
||
public interface ServiceStateClient { | ||
|
||
/** | ||
* Callback when Service bind | ||
*/ | ||
void onBind(); | ||
|
||
/** | ||
* Callback when Service unbind | ||
*/ | ||
void onUnBind(); | ||
} |
Oops, something went wrong.