Created
June 30, 2022 22:56
-
-
Save hatsunea/b86b40cc1a1e6c5c0e4bd9df6f0a4d8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MQTT送信 | |
var content = $"{{\"Temperature\":{Sht.Temperature.DegreesCelsius:F}, \"Humidity\":{Sht.Humidity.Percent:F},\"Pressure\":{Qmp.CalcPressureHectopascals():F}}}"; | |
var isOK = Client.SendMessage(content, new CancellationTokenSource(2000).Token); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment