mirror of
https://gitee.com/qpy-solutions/tracker-v2.git
synced 2025-05-18 18:48:25 +08:00
update: uplink post_data object_model change
This commit is contained in:
parent
2d97ba5bd8
commit
fbda725db5
@ -60,7 +60,7 @@ class QuecThing(object):
|
||||
if data_type == DATA_NON_LOCA:
|
||||
for k, v in data.items():
|
||||
for om in object_model:
|
||||
if k == om[1]:
|
||||
if k == om[1][0]:
|
||||
if v:
|
||||
if quecIot.phymodelReport(1, {om[0]: v}):
|
||||
res = self.post_result_wait_queue.get()
|
||||
|
@ -314,4 +314,5 @@ class Remote(object):
|
||||
|
||||
'''
|
||||
def post_data(self, data_type, data):
|
||||
log.debug('data_type: %s, data: %s' % (data_type, data))
|
||||
self.uplink_queue.put((data_type, data))
|
||||
|
@ -232,6 +232,7 @@ def get():
|
||||
@settings_lock
|
||||
def query(remote, set_type, set_key):
|
||||
global current_settings
|
||||
log.debug('remote: %s, set_type: %s, set_key: %s' % (remote, set_type, set_key))
|
||||
remote.post_data(remote.DATA_NON_LOCA, {set_key: current_settings.get(set_type, {}).get(set_key)})
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user