Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix new device ID on HomeKit topology change #212

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
3 changes: 1 addition & 2 deletions src/arduino_homekit_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <wolfssl/wolfcrypt/hash.h> //wc_sha512

#include "constants.h"
#include "base64.h"
#include "base64_util.h"
#include "pairing.h"
#include "storage.h"
#include "query_params.h"
Expand Down Expand Up @@ -3162,7 +3162,6 @@ void homekit_mdns_init(homekit_server_t *server) {
}

if (homekit_mdns_started) {
MDNS.close();
MDNS.begin(name->value.string_value, staIP);
INFO("MDNS restart: %s, IP: %s", name->value.string_value, staIP.toString().c_str());
MDNS.announce();
Expand Down
2 changes: 1 addition & 1 deletion src/arduino_homekit_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern "C" {
#endif

#include "constants.h"
#include "base64.h"
#include "base64_util.h"
#include "crypto.h"
#include "pairing.h"
#include "storage.h"
Expand Down
2 changes: 1 addition & 1 deletion src/base64.c → src/base64_util.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "base64.h"
#include "base64_util.h"

static unsigned char base64_chars[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

Expand Down
File renamed without changes.