mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
修改场站策略解析及网关指令下发
This commit is contained in:
@@ -194,6 +194,8 @@ void MqttClient::subscribe()
|
||||
|
||||
int MqttClient::publish(std::string topic, std::string text)
|
||||
{
|
||||
if (!client) return 0;
|
||||
|
||||
MQTTAsync_responseOptions options = MQTTAsync_responseOptions_initializer;
|
||||
options.onSuccess = [](void* context, MQTTAsync_successData* response) {};
|
||||
options.onFailure = [](void* context, MQTTAsync_failureData* response) {};
|
||||
|
||||
Reference in New Issue
Block a user