2022-04-14 17:58:03 +08:00
|
|
|
# Copyright (c) Quectel Wireless Solution, Co., Ltd.All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
|
|
|
|
class AliCloudConfig(object):
|
|
|
|
"""
|
|
|
|
object model data format:
|
|
|
|
|
|
|
|
object_model = {
|
|
|
|
"event": {
|
|
|
|
"event_key": {
|
|
|
|
"id": 1,
|
|
|
|
"perm": "",
|
|
|
|
"struct_info": {
|
|
|
|
"struct_key": {
|
|
|
|
"id": 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"property_key": {
|
|
|
|
"id": 1,
|
|
|
|
"perm": "",
|
|
|
|
"struct_info": {
|
|
|
|
"struct_key": {
|
|
|
|
"id": 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"""
|
|
|
|
|
|
|
|
class _burning_method(object):
|
2022-04-19 17:19:36 +08:00
|
|
|
one_type_one_secret = 0x0
|
|
|
|
one_machine_one_secret = 0x1
|
2022-04-14 17:58:03 +08:00
|
|
|
|
2022-04-19 17:19:36 +08:00
|
|
|
PK = "h3nqn03lil0"
|
|
|
|
PS = "UH9muaJIoAlpvnqE"
|
|
|
|
DK = "TrackerDevJack"
|
|
|
|
DS = "2980b4b86fb011375739a150c23bc252"
|
2022-04-14 17:58:03 +08:00
|
|
|
|
2022-04-19 17:19:36 +08:00
|
|
|
SERVER = "%s.iot-as-mqtt.cn-shanghai.aliyuncs.com" % PK
|
2022-04-15 17:32:56 +08:00
|
|
|
client_id = ""
|
2022-04-14 17:58:03 +08:00
|
|
|
life_time = 120
|
2022-04-19 17:19:36 +08:00
|
|
|
burning_method = _burning_method.one_machine_one_secret
|