forked from telefonicaid/lwm2m-node-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
54 lines (51 loc) · 1.3 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
var config = {};
// Configuration of the LWTM2M Server
//--------------------------------------------------
config.server = {
port: 5684, // Port where the server will be listening
lifetimeCheckInterval: 1000, // Minimum interval between lifetime checks in ms
udpWindow: 100,
defaultType: 'Device',
logLevel: 'FATAL',
ipProtocol: 'udp4',
serverProtocol: 'udp4',
formats: [
{
name: 'application-vnd-oma-lwm2m/text',
value: 1541
},
{
name: 'application-vnd-oma-lwm2m/tlv',
value: 1542
},
{
name: 'application-vnd-oma-lwm2m/json',
value: 1543
},
{
name: 'application-vnd-oma-lwm2m/opaque',
value: 1544
}
],
writeFormat: 'application-vnd-oma-lwm2m/text'
};
// Configuration of the LWTM2M Client
//--------------------------------------------------
config.client = {
lifetime: '85671',
version: '1.0',
logLevel: 'DEBUG',
observe: {
period: 3000
},
ipProtocol: 'udp4',
serverProtocol: 'udp4',
formats: [
{
name: 'lightweightm2m/text',
value: 1541
}
],
writeFormat: 'lightweightm2m/text'
};
module.exports = config;