hap-java / HAP-Java

Java implementation of the HomeKit Accessory Protocol
MIT License
153 stars 82 forks source link

Restarting looses pairings #7

Closed comdata closed 8 years ago

comdata commented 8 years ago

Hi,

I've taken the sample application and added a reloading of the keys, salt and mac and also the user map.

Nonetheless the elements are shown as not connected in the EVE app.

Any ideas?

Kind Regards

andylintner commented 8 years ago

Try turning on trace level logging - you may get an idea from there. If not, paste the logs in here (it will reveal your key, so if you're concerned about security, you might want to wipe the stored one afterwards)

comdata commented 8 years ago

Hi,

so far I had no luck enabling trace logging. Any hints what an how to do it?

andylintner commented 8 years ago

In the sample app, you can change it in logback.xml: https://github.com/beowulfe/HAP-Java/blob/sample/src/main/resources/logback.xml#L24

Replace DEBUG with TRACE

comdata commented 8 years ago

Hi,

I found the issue. It was a problem with saving the private/public keys.

Thanks for the support.