Skip to content

Commit

Permalink
Home Accessory Architect v12.14.3 Merlin
Browse files Browse the repository at this point in the history
  • Loading branch information
RavenSystem committed Dec 23, 2024
1 parent f53bfa3 commit 988aebb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion HAA/HAA_Main/main/header.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "../../common/common_headers.h"

// Version
#define HAA_FIRMWARE_VERSION "12.14.2"
#define HAA_FIRMWARE_VERSION "12.14.3"
#define HAA_FIRMWARE_BETA_REVISION "" // Format: "b01"
#define HAA_FIRMWARE_CODENAME "Merlin"

Expand Down
5 changes: 2 additions & 3 deletions libs/homekit-rsf/src/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@

#define JSON_MAX_DEPTH (30)

#ifndef HOMEKIT_JSON_BUFFER_SIZE
#define HOMEKIT_JSON_BUFFER_SIZE (1024)
#endif
#define HOMEKIT_JSON_BUFFER_SIZE (1442)


typedef int (*json_flush_callback)(uint8_t *buffer, size_t size, void *context);
typedef struct _json_stream {
Expand Down
5 changes: 2 additions & 3 deletions libs/homekit-rsf/src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
#include "pairing.h"
#include "storage.h"
#include "query_params.h"

#define HOMEKIT_JSON_BUFFER_SIZE (1024)
#include "json.h"
#include "debug.h"
#include "port.h"
Expand Down Expand Up @@ -157,6 +155,7 @@ typedef struct _notification {
} notification_t;

#define BUFFER_DATA_SIZE (HOMEKIT_JSON_BUFFER_SIZE) // Used by JSON buffer too. Must be 2 bytes reserved for client_send_chunk() end
#define ENCRYPTED_DATA_SIZE (768)

typedef struct {
char *accessory_id;
Expand All @@ -182,7 +181,7 @@ typedef struct {
json_stream json;

byte data[BUFFER_DATA_SIZE + 16 + 2]; // Used by JSON buffer too. Must be 2 bytes reserved for client_send_chunk() end; there are 18.
byte encrypted[BUFFER_DATA_SIZE + 16 + 2];
byte encrypted[ENCRYPTED_DATA_SIZE + 16 + 2];

fd_set fds;
} homekit_server_t;
Expand Down

0 comments on commit 988aebb

Please sign in to comment.