Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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