File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 1
1
author : ' Deomid "rojer" Ryabkov'
2
2
description : A HomeKit firmware for Shelly switches
3
- version : 2.0.10
3
+ version : 2.0.11
4
4
platform : esp8266
5
5
6
6
libs_version : latest
Original file line number Diff line number Diff line change 42
42
#include " shelly_sw_service.h"
43
43
44
44
#define KVS_FILE_NAME " kvs.json"
45
- #define NUM_SESSIONS 6
46
- #define IO_BUF_SIZE 1536
45
+ #define NUM_SESSIONS 9
46
+ #define SCRATCH_BUF_SIZE 1536
47
47
48
48
#ifndef LED_ON
49
49
#define LED_ON 0
53
53
#endif
54
54
55
55
static HAPIPSession sessions[NUM_SESSIONS];
56
- static uint8_t out_bufs[NUM_SESSIONS][IO_BUF_SIZE];
57
- static uint8_t scratch_buf[IO_BUF_SIZE];
56
+ static uint8_t scratch_buf[SCRATCH_BUF_SIZE];
58
57
static HAPIPAccessoryServerStorage s_ip_storage = {
59
58
.sessions = sessions,
60
59
.numSessions = ARRAY_SIZE (sessions),
@@ -426,11 +425,6 @@ bool shelly_app_init() {
426
425
static const HAPPlatformServiceDiscoveryOptions sd_opts = {};
427
426
HAPPlatformServiceDiscoveryCreate (&s_service_discovery, &sd_opts);
428
427
429
- for (size_t i = 0 ; i < ARRAY_SIZE (sessions); i++) {
430
- sessions[i].outboundBuffer .bytes = out_bufs[i];
431
- sessions[i].outboundBuffer .numBytes = sizeof (out_bufs[i]);
432
- }
433
-
434
428
s_callbacks.handleUpdatedState = shelly_hap_server_state_update_cb;
435
429
436
430
s_accessory.name = mgos_sys_config_get_device_id ();
You can’t perform that action at this time.
0 commit comments