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

Version of gattlib #1

Open
aliale09 opened this issue Oct 2, 2019 · 4 comments
Open

Version of gattlib #1

aliale09 opened this issue Oct 2, 2019 · 4 comments

Comments

@aliale09
Copy link

aliale09 commented Oct 2, 2019

Dear Mr. DeanCording,
I am sorry, I couldn't find your email using git.
So I am writing this issue with a hope for your help with compiling of owonb32 client under Xubuntu 18.04.03. It's not possible to compile the client. As I could see from the gcc log, the problem is in wrong version of gattlib I have in the system. There is no specific information about the version you used.
Would you be so kind to specify it?
I have compiled the library to work with Bluez 5.49.

The client compilation errors are likes this:
owonb35.c:575:71: note: each undeclared identifier is reported only once for each function it appears in owonb35.c:575:22: error: too many arguments to function ‘gattlib_connect’
connection = gattlib_connect(NULL, address, BDADDR_LE_PUBLIC, BT_SEC_LOW, 0, 0);
^~~~~~~~~~~~~~~
In file included from owonb35.c:38:0:
/usr/local/include/gattlib.h:276:20: note: declared here
gatt_connection_t *gattlib_connect(const char *src, const char *dst, unsigned long options);

@DeanCording
Copy link
Owner

DeanCording commented Oct 2, 2019 via email

@aliale09
Copy link
Author

aliale09 commented Oct 3, 2019 via email

@DeanCording
Copy link
Owner

DeanCording commented Oct 3, 2019 via email

@aliale09
Copy link
Author

aliale09 commented Oct 8, 2019

Hi again, Dean

Thanks for your advice.
I did as you said, just installed latest gattlib with legacy Bluez support and downloaded binary owonb35 client.
It works, but periodically prints out together with readings:

Unrecognized packet: 1a f0 04 00 07 00 1a f0 04 00 07 00

Maybe it's because of a new version of these multimeters, I don't know.
However, multimeterBLE APP under Android works with it well.
Would you be so kind to tell me what is this about?
May this unrecognized packed appear because of Bluetooth adapter, or it is sent by the meter itself?
I have purchased it from:
https://sagitta.se/artikel.php?kid=111-141&sok=&id=3969&sort=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants