Fix java sample code
This commit is contained in:
parent
7545a0ff9d
commit
24673f2b24
@ -102,7 +102,7 @@ public class JavaSample {
|
|||||||
|
|
||||||
if (sID != null && sUsername != null && sPassword != null) {
|
if (sID != null && sUsername != null && sPassword != null) {
|
||||||
try {
|
try {
|
||||||
MiCasa.setCredential(0, sID, null, MiCasa.USERNAME_TYPE_OTHER_F, sUsername, sPassword);
|
MiCasa.setCredential(0, sID, null, MiCasa.USERNAME_TYPE_CN_F, sUsername, sPassword);
|
||||||
} catch (MiCasaException e) {
|
} catch (MiCasaException e) {
|
||||||
System.out.println(e.getMessage());
|
System.out.println(e.getMessage());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user