def run():
protoConfig = ProtoConfig.getConfig()
channel = grpc.insecure_channel('localhost:%s' % protoConfig.ports.frontEndPort)
stub = sensors_pb2.FrontEndStub(channel)
rfBlasterRequestOn = sensors_pb2.SendToRfBlasterRequest(
button=2,
on=True
)
rfBlasterRequestOff = sensors_pb2.SendToRfBlasterRequest(
button=2,
on=False
)
stub.SendToRfBlaster(rfBlasterRequestOn)
sleep(1)
stub.SendToRfBlaster(rfBlasterRequestOff)
exit()
ClientTestRfBlaster.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录