Hi Friends
I need to compile the library to develop a interface with HOME KIT.
https://github.com/beowulfe/HAP-Java/
Using the SimpleLibraryCompiler i receive this error:
HAP-Java-master\src\main\java\com\beowulfe\hap\HomekitRoot.java:101: error: illegal start of expression
registry, subscriptions).thenAccept(port -> {
^
1 error
The complete line in this code is:
webHandler.start(new HomekitClientConnectionFactoryImpl(authInfo,
registry, subscriptions) .thenAccept(port -> {
try {
advertiser.advertise(label, authInfo.getMac(), port);
} catch (Exception e) {
throw new RuntimeException(e);
}
});
Some people could help me?
Thanks
Gabriel Giani
I need to compile the library to develop a interface with HOME KIT.
https://github.com/beowulfe/HAP-Java/
Using the SimpleLibraryCompiler i receive this error:
HAP-Java-master\src\main\java\com\beowulfe\hap\HomekitRoot.java:101: error: illegal start of expression
registry, subscriptions).thenAccept(port -> {
^
1 error
The complete line in this code is:
webHandler.start(new HomekitClientConnectionFactoryImpl(authInfo,
registry, subscriptions) .thenAccept(port -> {
try {
advertiser.advertise(label, authInfo.getMac(), port);
} catch (Exception e) {
throw new RuntimeException(e);
}
});
Some people could help me?
Thanks
Gabriel Giani