Git Product home page Git Product logo

esp32_ancs's Introduction

esp32_ANCS

Example of ANCS for the ESP32

esp32_ancs's People

Contributors

s-march avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32_ancs's Issues

Don't know how to write to Control Point

I am having difficulties getting a notification's "appID" using the control point characteristic.
example. "com.apple.facetime"

This is my current understanding of how I can obtain that information.

Once a notification has be received I get the notificationUID and pass it into the control point characteristic's write value function. Based off of the ANCS documentation site, the format should be [commandID-notificationUID-attributeID].

From this threads ANCS code, I declared the pControlPointCharatersitic globally & statically (instead of inside of the myClient class) but when we use the writevalue() function it hangs. Is there another approach to obtain ALL OF the notification's information?

example of how I am currently trying to implement it.

  1. new notification received
  2. enters function "NotificationSourceNotifyCallback"
  3. scrapes uint8_t *pData for the notificationUID (pData's last 4 bytes)
  4. requests more data from control point by sending [1-notificationUID-0] to (NOW Static) pControlPointCharacterstic object function, "writevalue".
  5. hangs, and doesn't exit writevalue function

Problem in iPhone8

Hi, i tried to retrive notification from ANCS i found your topic on nkolban lib.

Here is my log:


Device connected
74:19:6f:5d:a6:1b


E (262016) BT: lmp_version_below LMP version 6 < 8
E (262017) BT: earlier enc was not done for same device

E (262021) BT: btc_gattc_call_handler()
E (262025) BT: application already registered.
E (262029) BT: Register with GATT stack failed.

E (262033) BT: application already registered.
E (262037) BT: Register with GATT stack failed.

E (262042) BT: application already registered.
E (262046) BT: Register with GATT stack failed.

E (262061) BT: bta_gattc_process_api_open Failed, unknown client_if: 0
E (262164) BT: l2cble_start_conn_update, the last connection update command still pending.
E (262434) BT: Call back not found for application conn_id=4

Did you resolve this issue ?

compilation error

Hello, I'm looking all over the place and I still have this compilation error, do you have an idea?

"BLEServer.cpp:21:22: fatal error: gatt_api.h: No such file or directory"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.