Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendmessage and mqtt service return function_clause #2061

Open
EdmenGU opened this issue Aug 10, 2024 · 0 comments
Open

sendmessage and mqtt service return function_clause #2061

EdmenGU opened this issue Aug 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@EdmenGU
Copy link

EdmenGU commented Aug 10, 2024

mqtt server version:4.3.1
and this is my code:
public static void QueueStart()
{
Task.Factory.StartNew(async () =>
{
while (true)
{
try
{
if (queue.TryDequeue(out var data))
{
if (data != null)
{
await MqttSubHelper.PublishAsync(data.Topic , data.Message);
await Task.Delay(500);
}
}
}
catch (System.Exception e)
{
LogHelper.Error(e , "MqttQueneHelper_QueueStart");
}
finally
{
await Task.Delay(50);
}
}
});
}
when send then message ,The server has a chance to reply function_clause.I donnot know how i and do .and the same server ,java has no problem

@EdmenGU EdmenGU added the bug Something isn't working label Aug 10, 2024
@EdmenGU EdmenGU changed the title sendmessage and mqqnet service report function_clause sendmessage and mqtt service return function_clause Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant