| | |
| | | /// </summary> |
| | | static void SendPushSignOut () |
| | | { |
| | | #if DEBUG |
| | | return; |
| | | #endif |
| | | |
| | | byte [] message = CommonPage.MyEncodingUTF8.GetBytes (PushSignStr); |
| | | MqttRemoteSend (message, 4); |
| | | } |
| | |
| | | case 0: |
| | | topicName = $"/ClientToBusGateWay/{CommonConfig.Current.HomeGatewayInfo.gatewayId}/Common/ON"; |
| | | if (!string.IsNullOrEmpty (mqttEncryptKey)) { |
| | | //Utlis.WriteLine ("mqttEncryptKey:" + mqttEncryptKey); |
| | | message = Shared.Securitys.EncryptionService.AesEncryptPayload (message, mqttEncryptKey); |
| | | } |
| | | await RemoteMqttClient.PublishAsync (new MqttApplicationMessage { Topic = topicName, Payload = message, Retain = false, QualityOfServiceLevel = MQTTnet.Protocol.MqttQualityOfServiceLevel.AtMostOnce }); |