-
Notifications
You must be signed in to change notification settings - Fork 2
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
Test not working #1
Comments
Apparently the compiler has moved on, so pleas send the pull request. |
OK, PR done. |
The error about "Invalid function arguments provided." seems related to eclipse/mosquitto#2117 (comment) I was able to make it work, setting the keepalive to 30, but then another issue was uncovered in passing this value. The C library expects integer seconds, while the Ada binding passes milliseconds. I'll add this to the pull request. Another possible change is setting a different default for keepalive, since 0 seems problematic with some mosquitto versions/MQTT implementations. For the moment, I've changed the keepalive value only in the test program. |
The C library expects integer seconds, while the Ada binding was passing milliseconds. Additionally, some versions have problems with a keepalive value of 0, so the test is using 30, now. See issue persan#1.
I tried to test the binding, had to make some changes in order to compile with this configuration:
The changes were related to
Interfaces.C.Extensions.bool
now being anew Boolean
instead of a numeric type. (I can provide this changes as a pull request if needed).The problem is that the test procedure does not print anything. I got this information.
ltrace
output:The exception was not visible, but adding a
Put_Line
shows this:Any idea about the issue? How could this be debugged further?
The text was updated successfully, but these errors were encountered: