chenyc
2025-12-09 545c24c6a711d71b65f3d4e8122fee3837fb1edc
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
const { hmacSign } = require('../lib/utils');
 
exports.lightDevice = {
  productKey: 'a',
  deviceName: 'b',
  deviceSecret: 'c',
  brokerUrl: 'tcp://127.0.0.1:1883/'
};
 
// pn:高级版_sdk开发测试设备
exports.sdk_device1 = {
  productKey: 'a1aq9sQk2JE',
  deviceName: 'sdk_device1',
  deviceSecret: 'shvvZGkq4mM641WUhpfJpyInVeJhAH2y',
};
exports.sdk_device2 = {
  productKey: 'a1aq9sQk2JE',
  deviceName: 'sdk_device2',
  deviceSecret: '9MjBATSaS9RVditKYamlTtIGwqhuiQeB',
};
exports.sdk_device3 = {
  productKey: 'a1aq9sQk2JE',
  deviceName: 'sdk_device3',
  deviceSecret: 'ZXdtUJ1nlGxy1v2ZHjq5cTTt3RTVicoX',
};
// 网关测试设备
exports.sdk_gateway1 = {
  productKey: 'a1BOOa9HG6Z',
  deviceName: 'sdk_gateway1',
  deviceSecret: 'foepBtCT0Jl6x640KKQCPeYi9Kv8NdSV'
};
exports.sdk_gateway2 = {
  productKey: 'a1BOOa9HG6Z',
  deviceName: 'sdk_gateway2',
  deviceSecret: 'w6EXjFLT44VH0T5BUn0xplqW47Ye9Uze'
};
 
// 网关测试子设备
exports.sub_device1 = {
  productKey: 'a1aq9sQk2JE',
  deviceName: 'sub_device1',
  deviceSecret: 'ZlpbIRlTJQSzt8LegT5ALBvHbgEZK6Av'
};
exports.sub_device2 = {
  productKey: 'a1aq9sQk2JE',
  deviceName: 'sub_device2',
  deviceSecret: 'qp5ZAHBffAjKgqjDQ2bgiReNWE5uBKDW'
};
 
// 基础版sdk开发
exports.base_sdk_device1 = {
  productKey: 'a1YPDpMvd5t',
  deviceName: 'base_sdk_device1',
  deviceSecret: 'ePvXtVsndoeocd8zDSLC1BDDsCtPLBos'
};
 
exports.base_sdk_device2 = {
  productKey: 'a1YPDpMvd5t',
  deviceName: 'base_sdk_device2',
  deviceSecret: 'WnuQaINuj8oJva7R2vJGwds5w9PqF9VT'
};
 
// 不存在或错误的三元组
exports.wrong_device1 = {
  productKey: 'xxxxx',
  deviceName: 'xxxxx_base_sdk_device1',
  deviceSecret: 'xxxxxx'
};
 
// 其他模拟设备
exports.airBox = {
  productKey: 'a',
  deviceName: 'b',
  deviceSecret: 'c',
  brokerUrl: 'tcp://127.0.0.1:1883/'
};
 
exports.gateway = {
  productKey: 'a',
  deviceName: 'b',
  deviceSecret: 'c',
  brokerUrl: 'tcp://127.0.0.1:1883/'
};
 
exports.gateway2 = {
  productKey: 'a',
  deviceName: 'b',
  deviceSecret: 'c',
  brokerUrl: 'tcp://127.0.0.1:1883/'
};
 
exports.testDevices = [
  {
    productKey: 'a',
    deviceName: 'b',
    deviceSecret: 'c',
    brokerUrl: 'tcp://127.0.0.1:1883/'
  }
];