Skip to content

Commit 46cc3bd

Browse files
authored
Merge pull request particle-iot#63 from AntonPuko/deviceKeyFileRepo
add deviceKeyRepository to deviceServerConfig
2 parents f62628e + fffaddc commit 46cc3bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import {
44
DeviceAttributeFileRepository,
5+
DeviceKeyFileRepository,
56
DeviceServer,
67
EventPublisher,
78
ServerConfigFileRepository,
@@ -35,6 +36,9 @@ const deviceServer = new DeviceServer(
3536
deviceAttributeRepository: new DeviceAttributeFileRepository(
3637
settings.coreKeysDir,
3738
),
39+
deviceKeyRepository: new DeviceKeyFileRepository(
40+
settings.coreKeysDir,
41+
),
3842
host: settings.HOST,
3943
port: settings.PORT,
4044
serverConfigRepository: new ServerConfigFileRepository(

0 commit comments

Comments
 (0)