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

addData string and iOS 18 #2

Open
kvshino opened this issue Jul 10, 2024 · 0 comments
Open

addData string and iOS 18 #2

kvshino opened this issue Jul 10, 2024 · 0 comments

Comments

@kvshino
Copy link

kvshino commented Jul 10, 2024

I tried your repo, but it gives me two issues:

  1. During the compilation of the .ino file, addData requires an Arduino String, but you are passing it a std::string. I fixed it by changing these two lines like this:
    a->addData(String((std::string(cdata, 2) + std::string((char *)&uuid.getNative()->uuid.uuid16, 2)).c_str()));
    a->addData(String((std::string(cdata, 2) + std::string((char *)&uuid.getNative()->uuid.uuid128, 16)).c_str()));

  2. My iPhone (running iOS 18, if it matters) does not detect any "ANCS" while Android does (though it cannot connect properly).

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

1 participant