1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Fixed RPC for Request Connector

This commit is contained in:
samson0v
2022-11-21 12:32:47 +02:00
parent 46bf22e26f
commit 85caed47cf
2 changed files with 12 additions and 4 deletions

View File

@@ -1027,7 +1027,7 @@ class TBGatewayService:
log.info("Outgoing RPC. Device: %s, ID: %d", device, req_id)
self.send_rpc_reply(device, req_id, content)
@StatisticsService.CollectRPCReplyStatistics(start_stat_type='all_bytes_sent')
@StatisticsService.CollectRPCReplyStatistics(start_stat_type='allBytesSentToTB')
def send_rpc_reply(self, device=None, req_id=None, content=None, success_sent=None, wait_for_publish=None,
quality_of_service=0):
self.__rpc_processing_queue.put((device, req_id, content, success_sent, wait_for_publish, quality_of_service))