Is it allowed to include the battery state (0x2A1A) in the battery service?

牧云@^-^@ 提交于 2019-12-22 10:49:01

问题


The specification for the BLE GATT battery service only lists the battery level characteristic although the descriptive text mentions "battery level and state". I would like to indicate the battery charging/discharging state, however the characteristic that allows that (2A1A) is not included in any defined service. It seems this is an oversight by Bluetooth SIG.

Will including an additional characteristic in the battery service for battery state be flagged as non-compliant with the specification?

Will the addition of the battery state characteristic cause any issue with iOS or android centrals? For example will ios core bluetooth allow accessing a characteristic that is not list in the battery service specification?

I tried asking Bluetooth SIG directly about this and got back a non-answer indicating I should post my question here.

来源:https://stackoverflow.com/questions/45946565/is-it-allowed-to-include-the-battery-state-0x2a1a-in-the-battery-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!